WEBVTT

00:00.420 --> 00:01.760
Using input function

00:06.530 --> 00:17.220
using input function input function can be used to prompt the user to a certain number or trying.

00:17.750 --> 00:19.660
Let's see how.

00:20.600 --> 00:23.760
So now go to brackets and we will try to do it.

00:24.290 --> 00:24.770
OK.

00:24.830 --> 00:32.210
So to prompt the user to insert something you need to save whatever the user has been inserted in a

00:32.210 --> 00:33.480
variable.

00:34.080 --> 00:37.740
Ok watch how I'm going to do it right now.

00:37.860 --> 00:43.270
Create a variable called Name equal input parentheses.

00:43.340 --> 00:50.650
I will print a message such as What's your name backslash in means newline int..

00:51.140 --> 00:58.400
Then print a string of high space plus name plus space.

00:58.400 --> 01:00.640
How are you as an example.

01:01.040 --> 01:05.730
Then I will create another variable called user.

01:05.910 --> 01:16.690
It will impose Frances's in this line whatever things the user inserted will be stored in User variable.

01:16.970 --> 01:19.880
Finally type print is showing off.

01:20.030 --> 01:20.990
Thank you.

01:21.270 --> 01:25.620
Plus variable name plus goodbye's string as an example.

01:25.640 --> 01:40.820
And you can do whatever you like after that try that on terminal.

01:40.880 --> 01:41.800
All right.

01:42.050 --> 01:45.100
What's your name John Doe.

01:48.320 --> 01:49.450
Code printed.

01:49.490 --> 01:50.260
Hi John.

01:50.280 --> 01:51.730
How are you.

01:51.800 --> 01:53.740
So I'm good.

01:53.990 --> 01:55.030
Then printed.

01:55.280 --> 01:56.460
Thanks John.

01:56.480 --> 01:57.730
Good bye.

01:58.040 --> 01:59.010
Really nice.

01:59.180 --> 02:02.370
You should try that by your code on your computer.

02:02.660 --> 02:04.460
Thank you for watching.
