+ 1
i dont understand how this input thing works
6 Respuestas
+ 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
+ 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.
+ 8
HonFu that's an awesome code by Ulisses Cruz . Thanks for sharing!
+ 5
If you're having difficulty taking user input *here on Sololearn*, watch this:
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
+ 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