-3

I am doing some code for a flash Card quiz, however when I am running the program it says TypeError: 'NoneType' object is not callable in this line:

letter = print("Enter letter of your choice (A B C): ").upper()
JYelton
  • 35,664
  • 27
  • 132
  • 191

2 Answers2

3

print is used for printing text, not for text inputs.

To make a text input, use input (or raw_input if you use Python 2):

letter = input("Enter letter of your choice (A B C): ").upper()
Valentin Lorentz
  • 9,556
  • 6
  • 47
  • 69
0

I think your try to assign the output of 'print' to a variable causes the error.

jervis
  • 151
  • 1
  • 1
  • 9