0
How how does this work?
name = Input(“What is your name?”) Basically what does the input() instruction do?
9 ответов
+ 4
Read from the console 😃
+ 3
СОБАКА => Дебил / Retard in my case, the app just freezes. you have to restart it again. this happened relatively recently. I suspect this could have come with the latest app update, but am unsure about it. I periodically use the method of direct links to the lesson to help students with their problems. but lately I try to avoid it, because it's not just me that's broken, I've already seen it
+ 2
Input takes info from user. For example:
name = input('What is your name?')
if input:
print(name)
Users types: Bob
Output: Bob
You can also use input without anything inside, so it will be just an empty text field.
+ 2
СОБАКА => Дебил / Retard have you tried to follow the direct link to the lesson? is everything working well for you?
+ 2
🌌DarkFox the input operator is a built-in function in the Python language that allows you to get any data from the outside, from the user to the program itself. in your case, a line for entering data will pop up and a hint will be written: "what is your name?". if you use a non-sololern location for output (such as the console), the input may simply look like a new line and a blinking cursor, waiting for input from the user.
+ 2
Oooooh ok, that helped a lot.