I was working on this basic code for an encoder and decoder. I got a few lines in and tried to test it,
Type=(str(input('Would you like to Encode or Decode a message? Type E or D.'))
if Type.title[0] == ('E'):
PlainText=input('Please type a message')
Length=PlainText.len
print (Length)
but it came back as a syntax error and highlighted the colon after the if statement.
if Type.title[0] == ('E'):
I have tried changing all sorts of things but nothing seems to fix it. I am probably being very stupid and not spotting something.
Aucun commentaire:
Enregistrer un commentaire