If you wanna enter a string of text, you will use this input function:
variable = input(‘words describing what to enter‘)
Ex: tree = input('Enter your favorite tree: ')
If you wanna enter an integer number, you will use this input function:
variable = int(input(‘words describing what to enter‘))
or
variable = eval(input(‘words describing what to enter‘))
Ex: numberoftrees = int(input('What is the total number of trees in the world: '))
Be careful between those above input functions and determine what type of input value (text or number) you wanna enter.
Hope this helps you avoid this error next time!