How to request an input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to request an input

25th Oct 2019, 5:25 PM
István Radványi
5 Answers
+ 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.
25th Oct 2019, 7:53 PM
Lothar
Lothar - avatar
+ 4
What programming language are you using?
25th Oct 2019, 5:27 PM
Lothar
Lothar - avatar
+ 4
For Python the input is: input()
25th Oct 2019, 5:32 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Thanks
25th Oct 2019, 5:33 PM
István Radványi
25th Oct 2019, 5:28 PM
István Radványi