I would like to use the input feature in python and incorporate it with an if function. It reads the input only. Any help? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I would like to use the input feature in python and incorporate it with an if function. It reads the input only. Any help?

15th Aug 2017, 7:28 AM
wagaba david
wagaba david - avatar
3 Answers
0
You need assign the input reading to a variable and use this variable in the 'if' statement.
15th Aug 2017, 8:07 AM
Carlos J Sousa
Carlos J Sousa - avatar
0
I tried that.. It didnt work out well.. May be if u show me an example
15th Aug 2017, 7:51 PM
wagaba david
wagaba david - avatar
15th Aug 2017, 8:38 PM
Carlos J Sousa
Carlos J Sousa - avatar