filmov
tv
Python - Lesson 10 - User Input

Показать описание
VIDEO DESCRIPTION
In this video, I will be introducing you to user input and how we can use it. User input is information that we give because we are the user and we are giving an input. We can make Python wait for the user to type something to do something like close a program. To do that, type: ‘x = input(“Enter a number. ”)’. You can ask anything to the user if you change ‘Enter your name. ’ to something else. Right now, it just asks for and receives user input. I am going to print what the user types. To do that, type the name of the variable inside the print command. In my previous example, I created the variable called ‘x’. I am going to print the user input of that question: ‘print(x)’.
---------------------------------------------------------------------------------------------------------------------------
SECTIONS OF THE VIDEO
Introduction to User Input: 00:04 to 00:45
Examples of User Input: 00:45 to 06:52
---------------------------------------------------------------------------------------------------------------------------
CONTACTS & MORE
---------------------------------------------------------------------------------------------------------------------------
LINKS FOR PREVIOUS VIDEOS
In this video, I will be introducing you to user input and how we can use it. User input is information that we give because we are the user and we are giving an input. We can make Python wait for the user to type something to do something like close a program. To do that, type: ‘x = input(“Enter a number. ”)’. You can ask anything to the user if you change ‘Enter your name. ’ to something else. Right now, it just asks for and receives user input. I am going to print what the user types. To do that, type the name of the variable inside the print command. In my previous example, I created the variable called ‘x’. I am going to print the user input of that question: ‘print(x)’.
---------------------------------------------------------------------------------------------------------------------------
SECTIONS OF THE VIDEO
Introduction to User Input: 00:04 to 00:45
Examples of User Input: 00:45 to 06:52
---------------------------------------------------------------------------------------------------------------------------
CONTACTS & MORE
---------------------------------------------------------------------------------------------------------------------------
LINKS FOR PREVIOUS VIDEOS