Я думаю, что эта ошибка из-за отсутствия )
Ваш код должен выглядеть следующим образом:
def main():
FileToRead = input("Select the File in Directory :")
File = open("C:\\Users\\User\\Documents\\" + FileToRead + ".txt", 'r')
Data = File.read()
File.close()
print (Data)
if Data != None :
TypeOfCipher = int(input("For Encrypt Press 1 and 2 for Decrypt?"))
if TypeOfCipher == 1 :
TypeOfEncrypt = int(input("Press 1. Polyalphabatic, 2. Transposition, 3. Bit-wise")) # extra )
if TypeOfEncrypt == 1 :
print (TypeOfEncrypt)
return None