''' 
Programmer: Warlon Zeng

Username: wz634

Program Level Documentation: phD

filename: rec06.py

constraints: learn 2 code

assumtions: im coding
'''

from __future__ import print_function

from random import *

middleDigit = randint(2,7)

def getSingleChar():
    '''get CHARACTER from user'''
    singleChar = raw_input('Enter single character: ')
    return singleCharInt
    return singleChar


def checkValidType(singleChar):
    ''' if '2' = '2' Valid type == 1 '''
    if singleChar == '#' or '%' or '@':
        valid = 1
    for i = range(0,10):
        if singleChar == str(i):
            validType = 1
        else:
            validType = 0
        
def checkValid(singleChar):
    for i = 2:
        if singleCharInt + i = middleDigit:
            valid = 1
        if singleCharInt - i = middleDigit:
            valid = 1
    
