0
How to request user for inputs in your code ?
in Python
3 Answers
+ 7
There is the input() phrase for that:
req = input('Please specify your question: ')
Mind that it returns a string, so if you want to ask for a number, you have to convert it to int, float or complex. It can be done right away, like:
num = int(input('Enter a number: '))
+ 6
You might go about it like this:
https://code.sololearn.com/csSNsummyE3H/?ref=app
0
@kuba siekierzynski
can you check out my code and tell me where that input statement should come