0
Read question in desciptions
userin = input () rev= userin [ : : -1] print(f"input={userin}\n output={rev}")
3 ответов
+ 3
Hi Praveen!
Things you need to consider when you're declaring variables.
1. The first character of a variable name must be a letter or underscore (_). It can’t be a number.
1name -> X
name1 -> ✔
_name -> ✔
2. Variable names can’t include a mathematical or logical operator in their name.
2*name, 2+name
3. Always better to avoid using keywords as variable name.
4. Variable names can’t contain spaces.instead of space you can use underscore.(related to your question)
So, you have to change your variable user in to user_in or userin.
+ 2
0
Pŕávèéņ Sàini
So what is your question.
There should not be space in variable.