Read question in desciptions | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Read question in desciptions

userin = input () rev= userin [ : : -1] print(f"input={userin}\n output={rev}")

8th Aug 2021, 5:20 AM
Praveen Saini
Praveen Saini - avatar
3 Respostas
+ 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.
8th Aug 2021, 5:33 AM
Python Learner
Python Learner - avatar
8th Aug 2021, 5:44 AM
Praveen Saini
Praveen Saini - avatar
0
PÅ•Ć”vĆØĆ©Å† SĆ ini So what is your question. There should not be space in variable.
8th Aug 2021, 5:23 AM
AĶ¢J
AĶ¢J - avatar