0

How how does this work?

name = Input(“What is your name?”) Basically what does the input() instruction do?

22nd Feb 2021, 7:07 PM
🌌DarkFox
🌌DarkFox - avatar
9 Antworten
+ 4
Read from the console 😃
24th Feb 2021, 5:27 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 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
23rd Feb 2021, 9:23 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 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.
22nd Feb 2021, 7:11 PM
Aquizz
Aquizz - avatar
+ 2
СОБАКА => Дебил / Retard have you tried to follow the direct link to the lesson? is everything working well for you?
22nd Feb 2021, 8:16 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 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.
23rd Feb 2021, 9:27 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Oooooh ok, that helped a lot.
23rd Feb 2021, 4:55 PM
🌌DarkFox
🌌DarkFox - avatar