in this video, we are going learn how to write a simple script using python. 2
Here I will use a visual studio code, you are free to use your favorite code editor 3
But if you want to follow me, you can download visual studio code for free at code.visualstudio.com. 4
Okey, now let’s start writing a simple python script. 5
First create a new file, then save the file. 6
Don't forget to use .py extension, because this is a python script. 7
To display a simple word in python, we can use print keywords, for example we want to 8
display a “hello world”. 9
With a very simple script like this, we can display the “hello world”, okay now save 10
the file, and then open the command prompt. 11
go to the directory where we save the python script, in this case I save it in the document, 12
try to dir to make sure that the python script is in this directory, okay we can see the 13
python script here. 14
We can run the python script by typing python script.py, script.py is the name of our file. 15
When we enter, we will get hello world like this. 16
now let’s try to manipulate the script, let’s add hello python. 17
Save the file, open the command prompt and run the script again, here we get hello world 18
and hello python. 19
Okay, we have successfully write a simple script using python. 20
Congratulations! 21
in the next video, we will learn how to import mikrotik & cisco router to gns3. 22
Thankyou for watching and See you in the next video