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
2 Réponses
+ 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.
+ 2
Can you share a code that should work, and it does not work?
what exactly don't you understand?