Python: Reading Input From the Keyboard | Input Function

Опубликовано: 26 Декабрь 2020
на канале: Shakeel ur Rehman
313
7

Programs often need to obtain data from the user, usually by way of input from the keyboard. The simplest way to accomplish this in Python is with input().input([prompt])Reads a line of input from the keyboard.
input() pauses program execution to allow the user to type in a line of input from the keyboard. Once the user presses the Enter key, all characters typed are read and returned as a string