1
00:00:00,150 --> 00:00:04,540
It's recommended today that you learn and use Python 3.

2
00:00:04,560 --> 00:00:07,860
However you may still come across Python too.

3
00:00:08,040 --> 00:00:17,130
One of the most basic differences between Python 2 and Python 3 is that print is a function in Python

4
00:00:17,130 --> 00:00:18,100
3.

5
00:00:18,210 --> 00:00:20,430
Notice as an example I can type.

6
00:00:20,430 --> 00:00:24,730
Print Hello in python 2 and that works.

7
00:00:24,750 --> 00:00:26,130
So notice it worked.

8
00:00:26,400 --> 00:00:33,220
But if I type Python 3 and type of print Hello it fails.

9
00:00:33,360 --> 00:00:35,640
I need to put that inside of brackets.

10
00:00:35,640 --> 00:00:39,060
Notice we told that the parentheses are missing.

11
00:00:39,270 --> 00:00:41,870
So print Hello that works.

12
00:00:41,900 --> 00:00:48,660
So in Python 3 this is a function that's something that often traps people up when they work on Python

13
00:00:48,660 --> 00:00:51,530
2 and then moved to Python 3.

14
00:00:51,690 --> 00:00:57,120
So again the recommendation today is that you learn Python 3 but you may come across Python 2 as an

15
00:00:57,120 --> 00:00:57,900
example.

16
00:00:57,900 --> 00:01:04,960
If you using on box python on some Cisco devices you may still need to use Python 2 not 7.

17
00:01:05,100 --> 00:01:08,710
You may come across legacy code that uses Python 2 not 7.

18
00:01:08,850 --> 00:01:16,860
So learn Python 3 today if you need to it but be aware you may encounter Python 2 not 7 in the real

19
00:01:16,860 --> 00:01:17,340
world.
