1 00:00:00,000 --> 00:00:01,900 [no audio] 2 00:00:01,900 --> 00:00:05,600 Hi friends, welcome to 'Python Scripting for Automation' course. 3 00:00:05,900 --> 00:00:09,400 Friends, Python is very popular in different areas, 4 00:00:09,800 --> 00:00:11,800 and one of the area is automation. 5 00:00:12,600 --> 00:00:16,100 Let me show you the different areas in which your Python is popular. 6 00:00:17,300 --> 00:00:20,700 See Python is popular in application development side, 7 00:00:21,400 --> 00:00:25,300 I mean like Web-Application development, API development, and 8 00:00:25,300 --> 00:00:29,700 some GUI Application Development for your Desktops, right, 9 00:00:30,100 --> 00:00:32,299 and then Data Analysis, Data Analytics, 10 00:00:33,400 --> 00:00:37,200 Artificial Intelligence. You know AI is very, very popular, 11 00:00:37,400 --> 00:00:41,100 right, and Python is extensively used in your AI side. 12 00:00:42,400 --> 00:00:46,000 Then for Web Scraping and Text Processing, Selenium Testing, 13 00:00:46,300 --> 00:00:50,500 and then Automation. Not only these areas, there are many more 14 00:00:50,500 --> 00:00:51,700 other areas as well, 15 00:00:51,900 --> 00:00:55,800 but these are the major areas in which your Python is popular. 16 00:00:56,700 --> 00:01:01,400 See if Python is popular, then definitely it has some unique 17 00:01:01,400 --> 00:01:04,900 features compared to other programming languages or 18 00:01:04,900 --> 00:01:07,099 scripting languages, right? 19 00:01:07,400 --> 00:01:10,500 So because of that only your Python is popular. Then what 20 00:01:10,500 --> 00:01:13,500 are those? Why Python is popular, right? 21 00:01:13,500 --> 00:01:14,700 Let me go through that. 22 00:01:14,700 --> 00:01:18,800 The very first one is, Python is easy to learn because of 23 00:01:18,800 --> 00:01:23,000 its simple syntaxes. See if you compare your Python with 24 00:01:23,000 --> 00:01:25,400 other programming or scripting languages, 25 00:01:25,400 --> 00:01:30,000 it is having very simple syntaxes. You know, if you have very simple 26 00:01:30,000 --> 00:01:34,300 syntaxes then you can easily learn that. Once you learn 27 00:01:34,300 --> 00:01:36,900 it you can easily apply that for your real-time scenarios, 28 00:01:36,900 --> 00:01:41,400 right? So this is one of the point to become your Python 29 00:01:41,400 --> 00:01:46,800 as popular language. Then many modules - predefined and third-party 30 00:01:46,800 --> 00:01:50,900 modules. See guys in case if you know, if you have some basics 31 00:01:50,900 --> 00:01:52,300 of Python then it's okay, 32 00:01:52,300 --> 00:01:55,300 otherwise just assume that module is nothing but predefined 33 00:01:55,300 --> 00:01:57,200 Python program or Python Script, 34 00:01:57,200 --> 00:01:58,900 [no audio] 35 00:01:58,900 --> 00:02:05,900 right? See just assume that working with the database is a common 36 00:02:06,000 --> 00:02:08,699 scenario at your application development site. 37 00:02:09,900 --> 00:02:12,300 Now suppose if you are going to develop some application, 38 00:02:13,699 --> 00:02:16,400 and in that you need to write some code to connect with your 39 00:02:16,400 --> 00:02:20,200 database, to run some queries with your database, right? 40 00:02:20,200 --> 00:02:21,700 That is a common task. 41 00:02:22,100 --> 00:02:24,300 That's why for that task 42 00:02:24,300 --> 00:02:25,600 you don't need to write code. 43 00:02:27,300 --> 00:02:31,800 See whenever if it is a common or repetitive task for that 44 00:02:31,800 --> 00:02:33,500 type of tasks already 45 00:02:33,500 --> 00:02:37,500 someone has written a Python Script, and that is called actually, 46 00:02:37,500 --> 00:02:41,500 we are calling that as a module. Now, you can use that module 47 00:02:41,500 --> 00:02:44,900 and directly you can use that in your application development 48 00:02:44,900 --> 00:02:48,800 code, right, so that you don't need to write your code 49 00:02:48,800 --> 00:02:51,900 from scratch to work with database, right. 50 00:02:52,400 --> 00:02:56,000 So that means you are saving time, sometime, and you are going 51 00:02:56,000 --> 00:02:58,400 to reduce the number of lines in your code. 52 00:03:00,000 --> 00:03:05,200 Right. So because of many modules your Python is popular not only 53 00:03:05,200 --> 00:03:06,200 working with database, 54 00:03:06,900 --> 00:03:09,000 there are so many modules for different areas. 55 00:03:10,500 --> 00:03:14,000 I am not sure whether you know or not as of now with your 56 00:03:14,000 --> 00:03:18,300 Python there are around 1,47,000 modules are there. 57 00:03:19,400 --> 00:03:23,200 But don't worry, you don't need to learn all 1,47,000 modules. 58 00:03:24,000 --> 00:03:28,700 Based on in which area you are interested, or in which area 59 00:03:28,700 --> 00:03:30,900 you are going to use your Python, based on that 60 00:03:30,900 --> 00:03:32,700 you have to know some of the modules. 61 00:03:33,800 --> 00:03:38,800 That's it. Right. Then, code length is very short because of third-party 62 00:03:38,800 --> 00:03:42,400 modules. Just now we discussed that. To work with the database 63 00:03:42,400 --> 00:03:45,400 if there is no predefined Python Script, what we have 64 00:03:45,400 --> 00:03:50,000 to do? We have to write code from scratch, but luckily if 65 00:03:50,000 --> 00:03:52,900 we have a third-party module for your requirement, 66 00:03:53,800 --> 00:03:55,200 then you don't need to write code, right? 67 00:03:55,200 --> 00:03:58,000 You can use that directly, so that you are going to reduce 68 00:03:58,000 --> 00:03:59,500 your code length. 69 00:04:01,100 --> 00:04:04,000 Right. Then platform-independent. 70 00:04:04,900 --> 00:04:07,400 Just assume that you are going to work as a, 71 00:04:07,400 --> 00:04:09,100 suppose middleware admin, 72 00:04:09,100 --> 00:04:11,100 [no audio] 73 00:04:11,100 --> 00:04:14,800 right. Let's say in middleware you're going to work as a Tomcat 74 00:04:15,700 --> 00:04:21,600 application admin, right, and you know you can install your 75 00:04:21,600 --> 00:04:25,200 Tomcat, or you can install and run and manage your Tomcat 76 00:04:25,200 --> 00:04:28,500 on Windows operating system as well as some Unix-like systems, 77 00:04:28,500 --> 00:04:32,400 right? You can install your Tomcat on both operating systems. 78 00:04:33,500 --> 00:04:36,200 I mean in different operating systems you can run your Tomcat. 79 00:04:36,800 --> 00:04:43,700 Now assume that I want to automate some tasks on my Tomcat. 80 00:04:43,900 --> 00:04:46,200 I don't know Python, right? 81 00:04:46,600 --> 00:04:50,000 So first observe the Windows side. If you're working at Windows 82 00:04:50,000 --> 00:04:53,300 side to automate your task by default with your Windows 83 00:04:53,300 --> 00:04:57,800 you have either batch script or PowerShell. You can use any 84 00:04:57,800 --> 00:05:01,200 one of the script and you can automate your task. But same 85 00:05:01,200 --> 00:05:06,200 script would not work at your Unix-like systems. Then if 86 00:05:06,200 --> 00:05:08,900 you come to Unix side, again you have to write some separate 87 00:05:08,900 --> 00:05:13,700 shell script to automate your task. See for same task because 88 00:05:13,700 --> 00:05:15,600 of different platforms 89 00:05:15,600 --> 00:05:19,000 you're separating separate scripts to automate your task. 90 00:05:19,600 --> 00:05:24,100 But if you know Python you can write only one Python Script 91 00:05:24,100 --> 00:05:26,900 such that that script will work with your Windows operating 92 00:05:26,900 --> 00:05:29,500 system as well as your Unix-like systems. 93 00:05:30,300 --> 00:05:35,600 So this is the reason, because of this we are calling Python 94 00:05:35,700 --> 00:05:40,100 is platform independent. Now, you don't need to write two different 95 00:05:40,100 --> 00:05:42,300 scripts to work with the different operating systems, right? 96 00:05:42,600 --> 00:05:45,600 You can use only one script, Python Script. Python will work 97 00:05:45,600 --> 00:05:47,400 actually with the different operating systems. 98 00:05:47,400 --> 00:05:49,400 Whatever the script you are going to run on one operating 99 00:05:49,400 --> 00:05:52,300 system same script you can write with other operating systems as well, 100 00:05:53,900 --> 00:05:57,400 right. So because of this also Python is very, very popular, 101 00:05:58,700 --> 00:06:04,800 right. Fine. Then finally Python supports 102 00:06:04,800 --> 00:06:07,200 functional as well as OOPS concepts. 103 00:06:07,200 --> 00:06:10,000 [no audio] 104 00:06:10,000 --> 00:06:12,800 Right. That means not only Python guys, 105 00:06:12,900 --> 00:06:15,800 if you go with any programming or scripting language, if it 106 00:06:15,800 --> 00:06:19,100 supports functional as well as OOPS concept, then definitely 107 00:06:19,100 --> 00:06:24,900 it is a good language. Python is also one of that, right. Fine. 108 00:06:25,500 --> 00:06:28,700 Now coming to our course structure, 109 00:06:29,100 --> 00:06:31,700 I mean this entire course what we are going to learn and 110 00:06:31,700 --> 00:06:38,000 what is the sequence we are going to learn Python, see first 111 00:06:38,000 --> 00:06:41,200 we are going to cover Core Python. In Core Python 112 00:06:41,200 --> 00:06:45,000 I am going to cover basics of Python modules, libraries, packages, 113 00:06:45,000 --> 00:06:48,600 and functions, and then I will go and work with your OOPS 114 00:06:48,600 --> 00:06:52,100 concept. So this is my course structure guys. 115 00:06:52,900 --> 00:06:56,700 So finally just I want to give the information about your 116 00:06:56,900 --> 00:06:58,100 Python. Simply 117 00:06:58,400 --> 00:07:03,400 what is Python. Python is a powerful multi-purpose or general 118 00:07:03,400 --> 00:07:07,400 purpose programming language, and created by Guido Van Rossum. 119 00:07:08,600 --> 00:07:12,600 Multi-purpose or general purpose programming, that means Python 120 00:07:12,600 --> 00:07:14,700 you can use it in anywhere in your real time. 121 00:07:15,900 --> 00:07:19,100 Simply you can use your Python anywhere in your real time. 122 00:07:19,600 --> 00:07:20,600 That's it. 123 00:07:21,200 --> 00:07:23,800 And not only with your Python if you go with any software 124 00:07:23,800 --> 00:07:26,400 generally there are different versions. Even in Python 125 00:07:26,400 --> 00:07:28,800 also we have two types of versions. 126 00:07:28,800 --> 00:07:33,500 They are 2.x and 3.x. Again in 2.x 127 00:07:33,500 --> 00:07:36,200 and 3.x we have some sub-versions, but you don't 128 00:07:36,200 --> 00:07:37,900 bother about sub-versions, right? 129 00:07:38,700 --> 00:07:44,900 It's very simple to understand. And comparing to 2.x and 130 00:07:44,900 --> 00:07:51,100 3.x, right, in 3.x most of the outputs are like objects. 131 00:07:51,100 --> 00:07:53,500 [no audio] 132 00:07:53,500 --> 00:07:55,900 but in 2.x directly we'll get your output. 133 00:07:57,400 --> 00:08:00,700 So actually enhanced technique is there with your 3.x. 134 00:08:02,300 --> 00:08:03,400 Anyway, one more thing 135 00:08:03,400 --> 00:08:06,200 you have to remember, after 2020 136 00:08:06,200 --> 00:08:10,200 there will be no further new development with 3.x, 137 00:08:10,200 --> 00:08:11,300 sorry 2.x. 138 00:08:12,500 --> 00:08:17,300 After 2020 there will be no further development with 2.x. 139 00:08:18,000 --> 00:08:22,700 So that's why definitely after 2020, right, all of the organizations 140 00:08:22,700 --> 00:08:26,500 they are going to move with 3.x, and again in 3.x 141 00:08:26,500 --> 00:08:31,300 you have 3.4, 5, 6, and 7. Now the latest version with your 142 00:08:31,300 --> 00:08:33,700 3.x is 3.7.x. 143 00:08:35,100 --> 00:08:39,900 Now, it's better to learn 3.7.x. It may be any version, 3.7.1 144 00:08:39,900 --> 00:08:44,000 or 3.7.2 or 3 or 4, something like that, right? 145 00:08:44,100 --> 00:08:49,400 So here as of now, I am going to take the stable version in 3.x, 146 00:08:49,400 --> 00:08:51,000 that is 3.7.0. 147 00:08:52,000 --> 00:08:56,200 Right. So this entire course I am going to explain with the 3.7.0. 148 00:08:56,600 --> 00:08:59,400 But whatever the syntax is we are using while explaining 149 00:08:59,400 --> 00:09:04,200 your 3.7.0 same syntaxes you can use with your 3.x 150 00:09:04,200 --> 00:09:05,900 versions, right? 151 00:09:06,200 --> 00:09:10,300 My intention is, it's better to learn 3.x because 152 00:09:10,400 --> 00:09:16,200 we are very near to 2020 so, after that definitely, right, major 153 00:09:17,300 --> 00:09:20,100 development, major third-party modules will come with 154 00:09:20,100 --> 00:09:22,300 3.x only, right. 155 00:09:22,300 --> 00:09:26,200 So that's the reason I am starting the 3.x version Python training. 156 00:09:27,600 --> 00:09:28,900 Right. Okay guys, 157 00:09:28,900 --> 00:09:30,300 thank you for watching this video. 158 00:09:30,300 --> 00:09:37,600 [no audio]