Most programs are designed to solve a problem the user faces, so we usually need to get information from the user to achieve that. In this video, we are going to learn how to get user input, the first step to making our programs interactive.
To get input from the user we use the input() command. The input command pauses the program and waits until the user enters some text.
For example, let’s try the following two commands:
name = input(“What is your name? ”)
print(f“Hello, {name})
Watch video User Input - Python for Absolute Beginners online without registration, duration hours minute second in high quality. This video was added by user Programming With Nick 12 April 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 523 once and liked it 24 people.