i cant understand how basic input works. i do it like the lesson said but it still dosent work | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

i cant understand how basic input works. i do it like the lesson said but it still dosent work

I need help with input

17th Dec 2017, 3:07 AM
Campbell
Campbell  - avatar
2 ответов
+ 6
Lesson example: s = input("Enter something please: ") print(s) Line 1 creates the input prompt and stores the text "Enter something please:" + whatever you enter. Its stored in the variable 's' so you just print(s) to see the full text. Other example: a = input() print(a) As per above but the only text is what you enter.
17th Dec 2017, 3:32 AM
Duncan
Duncan - avatar
+ 2
Can you share a code that should work, and it does not work? what exactly don't you understand?
17th Dec 2017, 3:28 AM
Amir Galanty
Amir Galanty - avatar