i dont understand how this input thing works | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

i dont understand how this input thing works

21st Nov 2019, 9:28 AM
Moses
Moses - avatar
5 Answers
+ 13
Moses Hello,😊 Please, Can you specify your question correctly, it's unclear. Include relevant tags! Also, check out these tips to maximize your chance of receiving useful answers.😉 • https://www.sololearn.com/Discuss/333866/?ref=app
21st Nov 2019, 12:41 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 11
For future questions or this one, always try to specify the language as a tag and provide a code snippet. It helps those who try to answer.
21st Nov 2019, 11:38 AM
Sonic
Sonic - avatar
+ 8
HonFu that's an awesome code by Ulisses Cruz . Thanks for sharing!
21st Nov 2019, 12:58 PM
Sonic
Sonic - avatar
+ 5
If you're having difficulty taking user input *here on Sololearn*, watch this: https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
21st Nov 2019, 12:53 PM
HonFu
HonFu - avatar
+ 3
Moses Hi buddy. Your question is a bit vague, but I will try to answer some of the potential questions. input() will prompt your code to request the user to enter some data that the code may interact with. input() - a string input Int(input()) - an integer input float(input()) - a decimal input Example: x = input() # enter your name print('My name is', x) x is a string, (text) asking the user to enter their name => Rik The output will be: My name is Rik
21st Nov 2019, 10:41 AM
Rik Wittkopp
Rik Wittkopp - avatar