+ 1
How to request an input
5 ответов
+ 5
in python input is taken like this: (example)
inp = input('Enter your name: ')
the user input will be stored in the varable inp, and resulting data type is always string. if you need integer or float values, input has to be comverted.
+ 4
What programming language are you using?
+ 4
For Python the input is:
input()
+ 1
Thanks