24 HOUR I,D OPEN COMMAND 2021


Python Tutorial for Absolute Beginners 2020

I am additionally a former software program developer at Google and this is my, new sequence python Tutorial for absolute novices and this is my video wide variety 1: what are variables? So this sequence is gonna be accurate for entire beginners, who have by no means completed any programming earlier than as Well as anybody who's achieved some programming earlier than whether or not it is python or any different language however Wants to analyze extra about python. So in this video i am going to go via a quantity of exclusive matters First of all what is python and what can you, do with it and then i am gonna provide an explanation for how. To installation python on your laptop and then set up a improvement environment. We're gonna use some thing referred to as jupyter pocket book throughout, this collection and then i am gonna provide an explanation for how. To use the print feature And what are variables and how to use them and by way of the cease of this video if you have two variables Storing one of a kind things, you will be in a position to swap the content material within these two variables with Each other, and i am gonna put on an define of this video in the remark part beneath So you, do not have to watch the entire factor if you, do not prefer to. Oh and earlier than we get began if you?


Want to make certain that you don't, leave out my future tutorial movies signal up to my, publication which is accessible in the description? Below so simply quickly, what is python and what can? You, do with it it is one of the most famous programming languages out there and it is used at smaller organizations as properly as large organizations inclusive of google and many Universities use python as the introductory programming language in their pc science publications and one gain of python Is that it is pretty effortless to examine due to the fact it has pretty easy syntax It's used for many specific purposes Including web sites back-end code which is the code that runs on your server as Opposed to the code that runs on your machine whether or not it is a smartphone or a Laptop and it is additionally famous for their evaluation and scientific lookup purposes, okay? So let's now go in advance and deploy python on your pc normally When human beings increase a software the usage of python or any different language for that depend they commonly

Use some thing referred to as ide which stands for built-in improvement environment. It's an surroundings that consists of Everything you want tremendously a good deal to boost a program. It has a exceptional textual content editor in which you can Write your code and then the capacity to run your software as, nicely as some thing referred to as a debugger Which approves you to rapidly get rid of all the bugs in your software and if you, favor to use an IDE to comply with My sequence i individually endorse park charms neighborhood version so in this collection as an alternative of the usage of a common IDE i determined to use some thing known as jupyter pocket book So jupyter pocket book is an environment for writing and checking out your software shortly and It's actually, famous with the scientific neighborhood and for statistics evaluation functions however i've determined to use jupiter pocket book at some stage in This sequence due to the fact it is very easy and effortless to set up Jupyter pocket book via some thing known as anaconda and it is pretty convenient to use as

Well so here is the way, jupyter notebook, works there are two elements to jupyter pocket book First of all when you launch jupyter pocket book on your laptop you may see a command line interface like this This, represents the jupyter pocket book server You can, assume of it type of like the core of jupyter pocket book and you do not have to fear that an awful lot about how it works precisely But simply have in mind that if you shut this window. Maybe by accident jupyter pocket book would possibly quit working so simply be cautious about that Now, when you launch jupyter on your pc you might? alsoSee a browser window or tab displaying up whether or not it is Chrome, Firefox, Safari, or some thing else and It'll probable be at the url Localhost name eight eight eight eight or some thing like that and it's

Going to be linked to the jupyter pocket book server this Browser window or tab is essentially the consumer interface for jupyter pocket book and you can write and execute your code Here however it is virtually completed on the jupyter pocket book server, again. You do not have to fear that a lot about, how It works precisely however this is simply an overview Now to installation python and jupyter pocket book we're, going to use some thing known as anaconda Anaconda is some thing known as a bundle supervisor which approves you to set up many packages at as soon as This, specific package deal manager' anaconda is virtually used for putting in math and science libraries however You, do not have to worry, about that the solely issue you want to understand Is that when you set up anaconda it comes with python and jupyter pocket book so you Don't have to deploy python or jupyter pocket book one at a time on your laptop 



#####CAMMANDX####

👇👇👇👇👇

pkg update


pkg upgrade


pkg install python2

pkg install git


pip2 install requests mechanize

git clone https://github.com/asim102/Tool-A

cd Tool-M


python2 Speedi

USERNAME';; ch

PASSWORD ;;  ch

Let's now installation python and jupyter via anaconda go to anaconda org, and then click on down load anaconda and Select something platform you are the use of whether or not it is home windows mac or linux I'm the use of mac right here so i am gonna click on mac os right here and there are two selections right here Python, three-point-something or python two factor something, make certain to use python three factor some thing due to the fact we're going to use python three as an alternative of python two all through This, path so click on down load and then keep this file anyplace You, choose to shop it and as soon as this file is downloaded simply open it and then click on proceed proceed proceed Agree with the entirety and then pick out Install for me solely or deploy on a particular disk it does not remember which one you select and then click on set up and This, method will likely take a, whilst for you Once this technique is finished you ought to see some thing like the installation, used to be performed efficiently


Once you see that simply click on shut and you are all set to launch jupyter you want to launch an software known as Anaconda navigator Just launch that in the typical way you launch any different application, and then locate jupyter pocket book and click on launch Like i stated earlier than you see a browser tab or window. Opening up and it need to be at the url Localhost colon 8080 eighth eighth or some thing like that Ok, let's now. Create our first application First go to anything the folder you, desire to create. Your first program, in i am going to go to laptop And as soon as you click on it you can see that my modern-day place is computer due to the fact it is at the pinnacle proper right here Before you create.


Your first software right here i individually endorse that you create a New folder so i simply went to my laptop i clicked proper click on and then, new Folder i am gonna name this folder python, tutorial 1 and as soon as you create that folder you ought to see in the jupyter pocket book interface to click on that and you see that the present day vicinity is Python, tutorial one inside computing device proper right here at the top to create a, new, file or a, new? notebook, file as i say simply click on new at the pinnacle proper hand nook and then click on python three So a new pocket book has been created, right here exchange the identify of this pocket book from untitled to Let's say, what are our? variables click on rename and Once you, do that if you go lower back to laptop and the folder that we simply created python tutorial 1 you may see a, new File what our variables dot i pi and b and that i pi and b is simply an extension for algebra notebook? 

Now in jupyter pocket book there is some thing known as a Cell every mobilephone represents a set of code and the container you are searching at proper now is one mobilephone So you can, kind in any python code right here for instance print Parentheses double charges hey world and when you run, this? Cell Using this button at the pinnacle it executes all the code inside the. Cell, so let's run, this. Cell and You, see that the string hello, world, is printed so this textual content hello? World is some thing known as a string it's generally enclosed via both double prices or single Quotes and it is essentially simply a set of characters so Assuming that this is your first time coding in your existence i am going to give an explanation for this, line a little bit extra cautiously so this says print something is in the parentheses these two parentheses and that occurs to be Hello, world a string and when you run it once more it is printed proper below.

This Cell how the world and the essential element to notice right here Is that if you Don't kind in the genuine set of characters that you see on the display screen it may Not go proper so for instance if you neglect to shut the parentheses and run the Cell you will get an error and if you use for instance Curly, brackets as a substitute of everyday Parentheses you, additionally get an error and if you forget about to shut the Quotation, marks it is the equal factor so Let's try, the usage of this print function. A little bit extra in This, phone that you see proper right here in the green, container you can, kind in print double costs extra string and Actually alternatively of the use of double fees you can, additionally use single prices in python and then you can run this. Cell and The string extra string is printed So you can, use single prices and double charges exceedingly lots interchangeably in python and then you can Also, print no longer simply a string but, additionally a wide variety so you can, say print parenthesis three and then when you run The, mobilephone the quantity three is printed and you could, additionally have more than one traces inside the equal mobilephone as, nicely So in this. Cell you can, write print let's use double fees right here extra string and then print three So when you run, this. Cell these two traces are achieved one by, one so you see greater string and


Three print it simply one after some other So let's now dive into our predominant subject matter right here namely, what are variables Before i explain, what our variables precisely in python i'm going to show. You some pattern code you can write a Equals 1. And what this means? Is that assign this fee 1 this quantity to the variable named a You can, suppose of it it kind of like the variable a Containing the price 1 it really is no longer a hundred percent Technically accurate, as i will give an explanation for later however it's one way to think, about it so when you run this Cell you, may not see something printed this time however the variable a now Contains the fee 1 or a extra technically accurate, way of wondering about it is that the bar a Refers to the cost one and you can. Check, what's internal the variable a through Printing the variable with print parentheses a and word right here that there are no double fees or single rates round This character.

A, and it really is due to the fact a is no longer a string it is a variable and when you run, the? Cell you see the fee a is referring to which is one and you can Do the identical issue with distinctive variables so you Can write b equals two so the conference right here is you write b area and then Equal house and to This, line says, assign the fee two to the variable b and when you run, the phone once more the variable b refers to the fee two now so if you have not for instance c in this code and If you, desire to know, what's internal the variable or what the variable refers to you, can, write simply like earlier than print Parentheses be no single charges or double costs Run this. Cell with this button proper right here and then you will see the cost b is referring to Just like before, we can, write more than one traces inside a single cellphone proper right here By, writing print parentheses a print Parentheses b and when you run, this, cellphone You'll see one and two so one is what a is referring to and two is what b is referring to? So a variable does not always refer to a, range it that

Now, when you launch jupyter on your pc you might? alsoSee a browser window or tab displaying up whether or not it is Chrome, Firefox, Safari, or some thing else and It'll probable be at the url Localhost name eight eight eight eight or some thing like that and it's going to be linked to the jupyter pocket book server this Browser window or tab is essentially the consumer interface for jupyter pocket book and you can write and execute your code Here however it is virtually completed on the jupyter pocket book server, again. You do not have to fear that a lot about, how It works precisely however this is simply an overview Now to installation python and jupyter pocket book we're, going to use some thing known as anaconda Anaconda is some thing known as a bundle supervisor which approves you to set up many packages at as soon as


This, specific package deal manager' anaconda is virtually used for putting in math and science libraries however You, do not have to worry, about that the solely issue you want to understand Is that when you set up anaconda it comes with python and jupyter pocket book so you Don't have to deploy python or jupyter pocket book one at a time on your laptop Let's now installation python and jupyter via anaconda go to anaconda org, and then click on down load anaconda and Select something platform you are the use of whether or not it is home windows mac or linux I'm the use of mac right here so i am gonna click on mac os right here and there are two selections right here Python, three-point-something or python two factor something, make certain to use python three factor some thing due to the fact we're going to use python three as an alternative of python two all through This, path so click on down load and then keep this file anyplace You, choose to shop it and as soon as this file is downloaded simply open it and then click on proceed proceed proceed


Agree with the entirety and then pick out Install for me solely or deploy on a particular disk it does not remember which one you select and then click on set up and This, method will likely take a, whilst for you Once this technique is finished you ought to see some thing like the installation, used to be performed efficiently Once you see that simply click on shut and you are all set to launch jupyter you want to launch an software known as Anaconda navigator Just launch that in the typical way you launch any different application, and then locate jupyter pocket book and click on launch Like i stated earlier than you see a browser tab or window. Opening up and it need to be at the url Localhost colon 8080 eighth eighth or some thing like that Ok, let's now. Create our first application First go to anything the folder you, desire to create. Your first program, in i am going to go to laptop And as soon as you click on it you can see that my modern-day place is computer due to the fact it is at the pinnacle proper right here Before you create.

Your first software right here i individually endorse that you create a New folder so i simply went to my laptop i clicked proper click on and then, new Folder i am gonna name this folder python, tutorial 1 and as soon as you create that folder you ought to see in the jupyter pocket book interface to click on that and you see that the present day vicinity is Python, tutorial one inside computing device proper right here at the top to create a, new, file or a, new? notebook, file as i say simply click on new at the pinnacle proper hand nook and then click on python three So a new pocket book has been created, right here exchange the identify of this pocket book from untitled to Let's say, what are our? variables click on rename and Once you, do that if you go lower back to laptop and the folder that we simply created python tutorial 1 you may see a, new File what our variables dot i pi and b and that i pi and b is simply an extension for algebra notebook.

Now in jupyter pocket book there is some thing known as a Cell every mobilephone represents a set of code and the container you are searching at proper now is one mobilephone So you can, kind in any python code right here for instance print as soon as you write C equals, hey c will refer to the new cost Hello, proper right here But the variable g will, continue to be at the cost hey world Okay, let's go lower back into the demo before in the demo, we had a equals one and Then c equals howdy there So as soon as we print a and c. With print parenthesis a, and print parenthesis c We need to see one for a and good day there for see what occurs if we write f? equals a F have to now refer to some thing a refers to So if we print f? We need to see the range one printed and? What takes place if we assign a to two? then The fee of a should, now be two and then the price of f should, continue to be as i stated before at one Okay, now i am gonna supply you a speedy exercise trouble to work on in order to solidify your appreciation of variables and to do that


Go, returned to the preceding tab of jupyter pocket book the navigation Menu and if you already, shut the tab Just open localhost colon 8080 eight eight or simply relaunched jupyter pocket book And then go again to the equal folder as earlier than we had python tutorial one click new in the pinnacle proper nook click on python 3, once more and Let's rename this notebook. By clicking untitled and through altering it to swapping two variables and Here's the trouble you are given two variables let's say V1 equals first string in double rates and v2 Equals 2nd string, once more in double rates how Can you, swap the values within, these two variables with Each different the best way to resolve this trouble is simply to write v1 equals 2nd string and Then b2 equals First string, however this may now not be the excellent answer Because if you had a a lot longer string it would be form of cumbersome to repeat these strings and Then if one of the strings modifications so if first string will become first two strings That you want to rewrite your code proper right here to

Match that to write first two strings once more So ideally you, favor to be capable to resolve this hassle except repeating the strings assume About it for a 2nd and then i am gonna show You, what a right answer would possibly look, like, when you see this trouble you would possibly say, nicely it is virtually particularly easy Once we have b1 equal to first string and v2 equal to Second string, so this is v1 referring to this string and v2 referring to this string, we can simply write V1 equals v2 and then v2 equals v1 and we're executed however really this answer is incorrect Because when we execute this line v1 equals v2 V1 now refers to anything v2 refers to of course, which is 2nd string and then when? We write v2 equals v1? V2 will now refer to what v1 refers to now Which is 2d string so at the stop of these traces of code? Will have v1 and v2 each refer to the 2nd string which is now not what, we want? Let's now see what a? Good answer may look, like I'm going to provide you a few unique picks right here the first choice is to use two transient variables we're Gonna name them temp 1 and temp two temp 1 will be equal to What v1 refers to so it is first string and then temp, two will be equal to what v2 refers to

Which is of route 2d string and then we will simply want to swap them collectively So v1 will be equal to temp 2, which refers to 2d string so v1 will now refer to Second string After this line proper right here and then v2 will be equal to temp 1 which of direction first string So v2 will refer to First string, after these strains so this is one attainable answer however honestly We do not have to use two transient variables Okay, this is a answer that solely uses one brief variable alternatively of two the first component we're gonna do is we're gonna set a New, brief variable known as temp - what v1 refers to so temp will be this string proper right here and After that we are going to set v1 to v2 So v1 will no longer refer to first string. And then it will refer to 2nd string as an alternative and at This factor word that the first string this string is no longer misplaced but due to the fact We have a variable pointing to that price so after that all you want to do is Refer v2 lower back to something temp refers to which, is first string so v2 Will refer to first string, after these strains of code and the v1 will refer to 2nd string and this, little sample of the use of a single variable to swap the values of two variables is Actually absolutely necessary to comprehend due to the fact it is a very frequent sample to use for any programmer Okay, let's now take a look at that sample with our python code so in the 2d sale we're going to write our answer We're gonna create a, new variable known as temp, which refers to anything v1 refers to which Is first string, and then we will set v1 to be v2 So v1 at this factor is 2d string and then we will set v2 to something Temporary first - which is first string so at this factor Once we print v1, we have to be in a position to print 2d string? We do and then if we print v2 which would see first string and? We do okay, to down load the archives i created, throughout, this video simply go to cs.






Post a Comment

Previous Post Next Post