python programming with exercises & examples for beginners + intro to machine learning & smart apps | Shydra Black | Skillshare

Playback Speed


  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x

python programming with exercises & examples for beginners + intro to machine learning & smart apps

teacher avatar Shydra Black, digital marketer

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

27 Lessons (1h 59m)
    • 1. python programming intro

      2:37
    • 2. Python Download and use

      4:47
    • 3. How to open python

      3:05
    • 4. PART1; Python works just like any other calculator

      2:14
    • 5. PART 1: Math on python

      4:23
    • 6. PART 1 : The functions on python

      3:48
    • 7. PART1: types on numbers on python

      2:42
    • 8. PART1: The best way to learn python or anything u want

      1:41
    • 9. PART2 : Input function on python

      3:33
    • 10. PART 2 Math and texts in python

      6:05
    • 11. PART 3: Change class type on python

      5:25
    • 12. PART 3: The type of the input

      2:28
    • 13. PART4 :The variables in python

      3:46
    • 14. PART 4: Change or del a valuable in python

      2:23
    • 15. PART4 : The one place operator

      2:57
    • 16. PART5 : The boolean type

      6:44
    • 17. PART 6: Download Atom

      1:48
    • 18. PART 6 : Atom getting used to it

      5:13
    • 19. PART 7: The if statement

      5:02
    • 20. PART 7: The if statement inside an other if statement

      4:13
    • 21. PART 7: the else statement in python

      9:21
    • 22. PART 7:the elif statement

      13:16
    • 23. PART 7: Task and game for u to do

      2:41
    • 24. PART 7: The answer for the coding task

      4:06
    • 25. PART 8: The while loops

      7:40
    • 26. PART 9: The error types

      5:40
    • 27. The end python 3

      1:24
  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.

19

Students

--

Projects

About This Class

whether you want to become a developer, or you just looking for another skill to learn, this python course is an amazing start point for beginners!!

this course enclouds and teaches how to start and get familiar with the Python programming from a very basic and friendly approach as I'm speaking slowly and using simple keywords so anyone from all over the world can understand this new skill. moreover, the tasks, as well as the exercises on this course are created so that students can learn and have fun at the same time by trying to solve things, which is the best thing to not feel bored in online courses.

in the end, I will show you how to create a smart program selling tickets to only people who are old enough to drink alcohol. but this will be just as an example. and of course, you can be smart and edit the codes and make other smart programs doing some specific things you want them to do!!!!

 your learning from the best, I'm Shydra black 24 years old, I'm a digital marketer and a programmer. my courses reached and helped more than 10 thousand students all over the internet, and now it between your hands.

this course contains the following;

contains; examples, tasks, and exercises to learn python and how to code the right way!!!

and as an example: we will together program and code a simple app that distributes and sell tickets of a party to only people who are 18 years old or above. and we will code this program using the python language and I will teach you how to try to do it by yourself, by explaining every single code line.

you will learn by doing and by exploring how things work on python!!!!

 

Meet Your Teacher

Teacher Profile Image

Shydra Black

digital marketer

Teacher

I'm Shydra, 24 years old and I'm a designer and a marketer. I have my own stores and my own brands, and I do programming as well. however, my courses will help you move forward doing what you love. moreover, I think its time for you to start learning online. fortunately, skillshare made learning online very easy for everyone. and I suggest you take advantage of this and learn the most in-demand skills and knowledge that will help you in your journey. and never forget, success is a journey and not a destination. so enjoy your journey and my courses.

I'm currently working on a program on python that will do digital marketing for you while you're sleeping, the idea of this python program is that you can give the robot an amount of money and the robot or the progr... See full profile

Class Ratings

Expectations Met?
    Exceeded!
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%
Reviews Archive

In October 2018, we updated our review system to improve the way we collect feedback. Below are the reviews written before that update.

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.

Transcripts

1. python programming intro: Hi friend and welcome. My name is children should wrap black, 24 years old. And that will be your instructor for today in this course. First of all, don't consider me as a teacher. I'm not a teacher. Instead, consider me as a friend. A friend, a friend who's willing to help you and guide you on this Python course. I friend who's willing to help you. And as studies show that you are willing to learn more from your friend than from a teacher. Okay? I'm sure since you are watching this intro off this Python course, you already knew the importance of speaking the Python language. You already knew the importance of this language. And if you don't speak the Python language nowadays, it's like you're living in a developed country, but you don't speak English, for example. Yeah. Ok. Enough. Talking about the importance of this language, since you already knew how important it is to speak Python language, it's just as important to speak English nowadays in the 21 century. Anyways, in this course, I will walk you step-by-step on all the Python concepts and Basics. And when you finish listening and watching this course, you'll be good to go on your journey in the Python programming language. So, yeah, all you have to do is to enroll and discourse and laid down on your birth. And let me explain and do all the hard work for you. And well, a friend, I wanna give you some advices. Before you start to watching this course, please make sure that you are sitting in a comfortable place and there is no one to take your attention and annoy you. Also, I really recommend to use headphones for a better learning experience. Moreover, make sure you have the entire time to watch this course from a to Z, from the very first video until the very last video. And of course, if you think you understand something, you can pause your question in the Q and a question and answers section. To be honest, this is the best Python course to learn the basics and concepts before I started making apps and games using the Python language. Saw, yeah, and see you inside cars. 2. Python Download and use: All right guys, so far so good. So here we are on second and this video we're going to see how to don't want Python from the official website. Get. So we have to have to go to Google. Okay? Okay, let's go to Google. And on Google we're going to type in height. And this is important. Make sure that you're going to go to the mixture as you're typing python.org. Some people they go to python.com on, some other people they go to python.net. So it's not Biden.net or.com. It's the official website. It's biotin.org or our g. All right, so they click on the python.org. Alright? And the first website, make sure it's, it says treat www w or w VW, VW, V dot python.org. And you can click on welcome to Python.org or you can click directly dollar to go to the dominant page. So let's click the Welcome back to the Python. And here we are in the official biotin website. Good. So right now we're going to click on download. And as you can notice, A1's Click on the don't. I just put the mask on the downwind. And if I click on this button, item 3.8.3, it's the latest version of Python. And if you want a gentleman, this distribution, you can click here. If you, if you want to download an earlier video, you can click on the All releases. And you can see the previous version of Python, 2.73.5 to 0.6.7 or 0.8 bytes. Heartily recommend to DOM and the new version. All right, click saw. What do you want to do now is to click Python 3.8.3, the newest version. And you're going to click on it. And then you're going to choose where you want to Dawn the dispersion song. Click below, by the way, beautiful. It's a French word. It means the desktop, so you can put it up and then click, which is obviously it's also a French word. It's means save soul. Click on Save. All right, and it's going to start downloading. So it's 25 megabytes. And it's going to take 3132 seconds. So I'm going to cut this video and get back to you once it's totally done. Ok, so the solder dawned, it's completely done. So we're going to go to our desktop and hair. Yes. So now we have dawned Python, but it's, we, we still need to install it. Sought to install it. Hilarious Biden, we're going to collect islands. And then you have to click execute the R, R1 if your copier is set to English, salt click Run. And before click install now makes sure that bolt marks are check. So we can add a Python two the path, and then click Install. Now. So of course it's going to take some few seconds, a few minutes and gone. Of course, are going to cut the video sold. The period's going not to be that long. And once it's done, I'm going to get back to you. Our rights areas are in the end. When you're done, just click close, okay, so that search ads see you in the next video. 3. How to open python : Okay, so now we are good to go. So otra, you don't, and you install your Python. Instead of going again, I click bite and a lot of people, the onclick fighter, and you're going to have only these options as run or execute as R1. And even if we brighten, even if bi is already running on our system on the computer, is going to give you this option again. So instead of going and collect, bite it. So we've gotta go to the window. And we've gone to click here, and then we're going to look for the command prompt. And when you're going to find it, just click. It's, in my case, it's setting right here. And if you are using the Mac, you're going to look for the terminal t, e, r, m, i, n a, l, the terminal and is covered up. But in my case, my command, it's right here, some point you click on it and this little window is going up and all right, so to know if the pipeline is already running inside of this machine, inside of this copy, you're going to type in Python, and then space, and then dash, dash, and then version. So we're going to see if Bitcoin and which version and then hit Enter. And as you can see, the biotin, it's already running in my computer and it's the version three dots aids directory, the third version that we have doll and just before. Alright. So now we're not inside the button Add to enter the biotin out you have to do is to type in Python and then click enter. And when you go to see those little tree are o, that means now we're inside the Python. Now we can write codes based on the Python language. That is means we're inside the Python. Alright? And if you want to quits, also almost you have to do is type. And then the two brackets and then hit enter. And now we're outside the Python. So yeah, that's it. And see you next video. 4. PART1; Python works just like any other calculator: Okay, so in this section, we're going to see only numbers within the bitcoin. And what you should know is that Python, it works just like any other calculator. So for example, let me open my calculator and yet is. So let's go and open Python. When you see the three arrows right here, it means that now we are within the bitcoin. So for example, let's switch our car culture and let's first seven plus seven, and it's equal, it's 14. So let's switch to our Python type and seven plus seven and hit enter, and it's also 14. So for example, let's use the minus 4x seven minus two and it's five. And this switch or whiten seven minus two, and it's also five. So this time, let's say eight double and double. Within Python, you gotta use the sign, the star sign. So eight, double eight and hit Enter, and it's also 64. All right, let's go back to our calculator and this tile. That's been nine, the fight. So we're going to use the diverse undoes, the diverse eukaryotes, the forward slash, so nine divided by, divided by three. And a call tree switched our Python line divided by three and hit Enter, and it's three. So what you should take from this video is that Python, it works just like any other calculator. 5. PART 1: Math on python: So there are also another math calculation that exist. This time it exists only within biotin and it's only for the Python you can use. It's only inside by them. And it's like first It's called the four division. So the floor division, it's like how many it's based like how many numbers exists within a number. So let's use the Python to explain this more. So for example, okay. So for example, seven divided by two and its tree. But this time I'm going to use the double, double forward slash. And I'm gonna type in two and that's three. Like harmony. Like it's eliminates the comma or the points that comes after the tree. Like how many to exist within the seven? Within a 732 and the one and only 111, like there is 27, it's two plus two plus two plus one. But in our case we want only to see how many twos exist within a seven. And, and there are three, two's exist within a seven. I know this is a little complicated, but if you can, if you just follow me, we'll be easy. So let's use another example, 95 by two and hit enter. It's 4.5. But this time we're going to use nine and we're going to do to forward slash. And then we go to hits too. And it's, and it's for like how many twos exists within mine and there are four to exist within nine. But nine, it's like nine minutes for 2s plus one, plus one. And in this time we want to eliminate the 0.5 and it's only four. So actually there is another mode calculation and it's the double, double. So this is the floor division. Now we're going to use the double, double and double double, which is the double forward like two doubles. So for example, we switched our Python and for double for its 16. So this time I'm going to use to double slit for, double, double bow for and hit enter and it's 256. The double double, it's like the four double double four is like for double. For, double, for double four. Yeah, so let's hit Enter and it's 256. So that's the other kind of math that exists only within Python. First, the floor division and the second one, the double, in short, the floor division. We want to see how many numbers exist, how many specifically number exist within number and double for it's like for, for example, for double for its 16 bots, for double, double for it's like four. W4, W4 double for. Yeah. I know this is a little complicated, but it will make pure sense later on down on this course. 6. PART 1 : The functions on python: So in this video, we're going to talk and speak a little bit. I'm going to speak a little bit about functions. So what is our faction? Our function is a word or forebear. It's an order that is used to do something specifically, like you're John to Biden, Do this, do something specific like for example, if you have, if you're talking to a baby and you say to a baby, say Daddy, the baby is not going to say, say that a is going only to say daddy or mommy or something like that. And that is exactly what spite of salt, for example, let me open this up, for example. The first part, the first function I want to draw on show to you in this video is the print function. So if you go to Python and we type in brands, and then we type in three plus three. And then we hit enter. What do you think that we're going to get? We're going to get only six because it's the result of three plus three and friends. This, it's very important and you will use it a lot in the future, especially on the web development and game development design. And always after the function, use the brackets right here. Because after print, the print function, it's, the Biden is going to print what's between the brackets, like trip cluster, it's not going to print like the exact tree plus three, it's going to print only sex. So for example, it's Python. And let's type in first item to get insight that biter. And this time I'm going to type Ben grants. It's a function like your children to Python to print something. And then six plus six. And then I'm going to hit enter and we got all up and saw his Brinton only what we ordered watch we told him to do. And yes, as a result, as you can see, we've got only 12 Azar result. So for example, let's type ban prints hello or bought to hit enter. And what do you think was we're going to get. So let's hit Enter and then let's see what we are going to get. And as you can see, we got only hello word. What's inside of Python? Like what's we wanted to saw. Its just like as I explained lecture, if you talk into somebody and you turn him, Tell me how, how, how much is three plus three is not going to repeat it. Tell me how much history is going to answer you is going to tell you three plus three is six or nine or 12 or whatever it's going to say. And that's exactly what is working inside the Python. So hope you enjoy it and see you in the next video. 7. PART1: types on numbers on python: Within the biotin, there are actually two types of, or two stars or two types of numbers within the Biden. First. Times. Types. Python. First, the first number, or this tall. The first type of number is integers. And integers are numbers like seven or for 66 or 99 are 1755. That has no comma or no binds. And the second type of numbers are flows. That's half points like 2.2 or 300.97997 to 201.55, and so on. Okay, so for example, let's go to Python. And we all, okay? Okay, so well, let's use the example. So I'm going to type in time. And then I'm going to rot, for example, 99. And click Enter and the gas is t0 and t, which is integer. So this time we're going to click right type and the US 300.77 for example. And I'm going to, of course it should be between brackets. And then we're going to hit Enter. And the cause is flow. As you can see. 8. PART1: The best way to learn python or anything u want: Okay guys, so what I want to say in the end of this lecture is that nothing, there is nothing that can teach you better than experience. So to, to learn this much, so what you gotta do, you gotta download Python and instruments and you use it. And just within Python and type in brands three bar plus three and just use the Python. And even if you made a mistake, it's totally okay. And there is not a problem, because this is the best way that you can learn by them. Because there is no body that can teach you Python better than you, better, better than yourself. You are the only one that can teach yourself Python, which, which is by experiences. So my, my last advice to you is to experience biotin and use it on typing stuff within, bite them. Because this is the only way that you're going to learn by the notches, by experience. Experience is the best teacher that teach me and it's going to teach you. So there is no cause there is nobody that can teach you Python better than your self, better than experience. So just go ahead and don't button starts to appear. And what I'm going to explain to explain to you in this section. So if you wanted to circuit, this is the secret to learner programming. Yeah. 9. PART2 : Input function on python: Alright, we have seen before how to type our function, or in other words, we have seen how to type on order. Yes, I'm older and asked by to introduce something specifically for us. And we have seen the print function like brands. For example. She drew your name and then hit Enter. And now we will see the impulse, faction and other fraction that it's similar to friends, which is the inputs function. It's a function that asks the user that we, as a developer, ask the user to enter something specifically and save it on our system. For example, we can ask the user to enter is his name or her name. So for instance, you can type in inputs and then enter, enter your name. Just like that. Just like that. And the solids see this in real example in, within the Python. So we're going to ask the user to enter his, his name. And don't forget guys. Functions or older must always be between two brackets. Okay? So switch chart, button. So I'm going to write inputs and then I'm going to open the brackets. And then I'm going to type in enter your name. And then I'm going to hit enter. And it asks us, it'll ask us enter your name. For example, I'm calling right shoe drop my name or you can write your name and it says she'd drop. And as you can see, it print my name. And of course, further down the course. In this course, we will see it and use it professionally and on real examples and tasks. So what I want you to take from this video is that inputs ask the user to enter something specifically, like maybe age or name or address, or a date or something like that. 10. PART 2 Math and texts in python: You can use the plus sign to add a word to another word. Like for example, I can print atom plus Sutra or some other word or another name. And the plus means like your vitamin police Python add for example, shigella to Sally or shew drew us to add them or another name. And it will put the two words are the two texts to each other. It's going to put one next to the other. So let's see how it's going to do this. So for example, if I want to append like Sutra and plus word or other, we're going to hit enter on the biotin. It's going to type in. She draws on board, maybe without this space. So let's see this on the bottom. So let's first enter the button. Right? Okay, so let me type in my name. And then the plus sign and the atom as an example. And then hit Enter. As you may notice, it's she dry them, should grow them. It's, there is not spaces in between words because Python sometimes isn't that smart enough to know those, those are, those are two words. Sometimes you have to be better and smarter than the Python to fix some things like that. And I know you're smart. So I know that this problem is not going to stop you and the solution is actually easy to find. Just bought our space on the word, the first word, on the second word. So it's going to be something like adam. And they put a space. And then the plus sign. And then she drum. And, you know, going to hit enter. Now it's creating a space between Adam and she draw n space. It's not that bites and added. It's the space right here. All right. And of course, you can't add a text to a name. Like for example, you can't add Hello plus five, so you're going to get an error. So let's see this. Plus phi. And as you can see, we have got an error. So you cannot add a word too, a number, but you can multiply a word by a number. You can multiply, award by an odd number. And the multiply sign means that we are actually invited to multiply our certain ward by this kind of surgery number or by this much of time. Like for example, we can take again how long? And then, sorry, multiplied by, for example, seven. And it's going to repeat the word hello seven times. So let's see this in Python. So it's taking this time shooter and multiply by seven. And it just repeated. She drew up seven times. And of course without spaces, spaces. So let's repeat it. And this time should be with spaces. And here is she dropped multiplied seven times. And of course, you can't multiply a world by another word like for example, can't multiply hello, like hello multiplied by Xi drawn as an example. So you really just can't do this or you can multiply them. Double Chou draw unless you want to drive your Python crazy. And of course, if you do this or let's do this, I'm sure Python is going to yell at us with, with a very big error saying, hey, what the hell you're trying to do. So it is. And as you can see, we have got the error. You cannot multiply two words. 11. PART 3: Change class type on python: So till now, we have seen on this course so far the two types of numbers on Python. We have seen the floats that are numbers like 11.22 or 0.23. And we have also seen integers which are like normal numbers like 11 or 12. And now we will see the string, which is only for text. For example, it's good to Python. Here we are, we're in sub button and the mid type Soviet going to type the type to know the type of maybe Hello. And then I'm going to hit Enter. And the class is string, which is like simple text, which is yeah, text. And so let's type in the type. And this time we're going to see the typeof five. And I'm going to enter wishes E and T. The class is E and D, which is integer. Alright, let's type print again type. And this time one or 10.77 as an example and hit Enter and the class is thoughts. And if we want to change an integer into a float like E, an E, an integer to offload, we will use the float function like that's. So first we're going to type in floats. And we're going to enter our float like for example seven. And going to hit Enter. And yes, we are going to receive seven as a float this time, which is 7. And if I want, if I want to change seven to our string, I'm going to put S, T, R, seven and then hit Enter. So I'm going to hit enter. And now seven is as strange means as a text and not as a number. Because now we're habits. Not as a number, as a text, as a simple text. And for example, if you want to add hello or shoe drop or your name or whatever word or text to this seven. So I'm going to receive an error because I can't add a string to an integer, because we can only add string to another string or an integer with other integer. That's why we need to change a hello. So let's try it first. So let me type hello and plus seven. So as you can see, I have reserved an error. I cannot combine the two. So this time on gaunt type Ben, Hello. Plus, I'm going to type in E, S, R, and seven, which is as string, which is means add hello to us seven as a string or as a text. In other words, we are children Python. First change seven to a text or as an integer, then add it to hello or two shooter or whatever, the words that we have it. So let me hit enter, and here we are. Hell are seven. So for example, if we want to add 200 plus, for example, 400, let's hit Enter it's 600. And the 200 now, integer plus 400. Okay, typing 200 to 400 and hit enter and we have the result, not the numbers. We have them as a text. All rights, because you can see now we are not using the calculator. Now we're using only the texts. All we have the result as a text, not as a number. 12. PART 3: The type of the input : Okay, so we have seen on this course the implant, the input function. And we have seen how the input function can be used to ask our user on our website, or on our game, or on our app to enter something specifically like his age or his name or his address. And now using this function, we can change the type of the information the user put and enter the data that the user inter on our app or, or maybe another website. At of course, always, it's the inputs. Always get the data as a string, as a text, even if the user enter a data as a number, for example, the user into the data as Raby, his age 442 input, always receive it and distribute it as text. So let's Python again. So let's tie the type sold that we can't know and see the type of the number the user is going to introduce all type, type and inputs. Inter number. So let's click Enter and it's going to ask us enter a number. And for example, ongoing, maybe his age sorts the age, maybe 44. So 44 and hit enter, and the class is a string. So of course we are going to receive that this number is the string. In other words, this number is not as r as a number it as a text. Because always the input to get the data and distributed as a as a as a, as a text. Yeah. 13. PART4 :The variables in python: All right, so in this section, we're going to see the variables. A variable can be something like, for example, our variables can be as an a, sorry, yeah, it can be as an a or B, or T, or G. And of course it should be defined within Python. So the variable can be defined as a given value by using the plus sign. For example, we can set a equal, for example, 17 or 20. So the value that we can give it to a valuable can be anything. It can be a float or an integer, or as a string. So for example, let's go to Python. Alright, now somewhere inside the Python. So let's type in t. And then we're going to give x0 the value elephant as an example. And then I'm going to type in C, T And I'm going to hit enter. So t is Oliver, nor the value that we give it to two, t is 11. And if we type, for example, type, then we are going to see and hit Enter. So the costs of the tea is integer because it holds a number that is integer. And the value that is inside T is, of course integer. And of course, if I brands t plus maybe ten, and I'm going to hit enter, I'm going to receive 21 as a result, because T, it's already set as ten and as 11 and plus then the results should be 21. And if one, if we want to add T to maybe another available, for example, its brand t plus h as an example and hit enter. And of course, I'm going to receive an error because T, H isn't defined, Yates, it's not defined yet. And if I set, and if I said h, for example, to be maybe four and hit enter. Okay, so sprints again H plus t And hit Enter, so T. So now the result is 15. 14. PART 4: Change or del a valuable in python: And of course, if you want to change the value that is held inside a variable, for example, locally, which have to do is to retype it. Again. For example, if we type in a k a equal 12 and referred prints a, it's going to go to k two. We are going to receive 200 as a result. But if you want to change the value that is inside a on what you have to do. You have actually two options. The first one is to type in a and reassign it and give it a value, and then type m, for example, 40 and refer prints again a, we are going to receive four as a result. Or you have the second option which is to type in D, D, E, L, and a. And the L, which is, it's, it stands for the leads deletes a and again type in, we're going to receive an error that's a, it's not defined because Python a completely layers from its memory. So let's go to Python. And here we are. So we are going to give the variable a value that is, which is 1112. And if reprints a again recollect received 12 as resolved. And if you want to change it to change the value that it's held inside a, we have to tap it again, a ecole 40 and then friends a. And we're going to receive 40 as a result. But if we want to delete completely a from the memory of our Python or to have to do is have been DL space and a, and now has been a completely deleted Soyuz circuit, again a. And we're going to receive an error which is going to say that's a, it's not defined. So that's how to change or deletes available from the Python. 15. PART4 : The one place operator: Hi. So in this video, we will see the invalid place operator which can be used with variables. So for example, if I have the variable to be b and they give it the value of 20, so P equal 20. And if I read type again b and click Enter will receive 20 because the value of b is 20. Then if I choose to add, for example, 12 for any reason to be solvable, set again, b, a equal to one plus 12. And of course, if I raise it again, we will see if the R2, because now B is 3-2, It's holds the value of 32. Alright, so now let's set our B2B 20 again. So P equal 20. If I raise it up, I can be, we will receive 20 now. And now we will use the one place operator, which is to type b plus equal 12. So now the value of p is 20. And when we type again b plus equal 12, I'm going to hit enter. And it means that I'm telling Python, please take the value that it's inside B, which is 20, and add 12 to add Andrew, reset the value of p again. So what I'm going to type in B and hit enter on culture receive 32 as a result. And this is exactly what it's, what it's called in one place operator. And the plus, the plus equal in the sign of the 1plus operator. So again, for example, we have d and T equal 20. So if I retype again, D is 20. So now what I'm going to do, I'm going to type in d plus equal ten. And I'm going to retype again d. And d is now 30. And that is exactly what it's called the workplace operator. And of course, the sign plus equal is the side of the one place operator. 16. PART5 : The boolean type: So up until now, we have seen three types of values within the Python. Will have seen the STR, this string, which are simple text. And we have seen e n, e n, t, which are integers, which are normal. Numbers without points are common. And also we have seen the floats which are numbers with points like for example, 3.7 or eight, points, five or six. All rights. And now in this section we will see a fourt type, which is the Boolean type. The boolean boolean, we will say the Boolean type. So the Boolean type could be iter two, could be either true or false. It could be either true or false and is at, it is always as a result of comparing between two values. For example, if I want to see if five or eight or maybe three is bigger or greater than six. I'm going to receive a false because of course, of course tree isn't bigger than six. So let's go to Python. Type. Three is bigger than six and hit Enter and it's false because treat isn't bigger than sex. And this force, it's a Boolean by itself. And also, I can use smaller than this, smaller than sign. So mine is smaller than 12. And when I'm going to hit Enter, it's true because nine actual is smaller than 12, and of course a, receiving a two. And this true, it's also a boolean. So yeah, any Boolean, I can use the sign smaller than and bigger or greater than. Okay? Now, it's, now let's use the equal sign to CFR. For example, 100 is equal to 200, and let's say what we are going to get. So pay attention to this. Let's hit Enter and let's see what we're going to get. I have received an error because actually the equal sign in Python, it's only for given value and it cannot be used to compare between two numbers are know which one is the bigger and which one is the smaller. Saw the equal sign, the one equal sign, that's the one equal sign means assign or to give a value to a variable. And to compare two numbers in Python, we actually got to use the double equal sign 200. A equal to 100, equal to 200. So let's try that again. Okay, so let's try that again. 100 and double equals sign to 200 and hit enter and we have received false. And now it's like I'm asking Python if 100 is equal to 200, either received Falls has an answer because 100, it's not a goal to 200. And of course, I can't compare between two variables. So for example, tea and give it the value four. And D, for example, give it the value of seven. And I'm going to hit enter. So let's say if t is bigger than d And they're going to hit Enter and false because T is also four and D is seven rates. So, and you can use the bigger than or equal sign are smaller than, compare between also valuables. And also you can ask Python if, for example, T is not greater than D. So let's type c, And then I'm going to use this sign, nuts a call, then D, and I'm going to hit Enter and two t. It's only for, why all d is seven. So this sign its use. Not for, not equal that. Alright. So that's it. And you have to go to your own Python and open your Python and stars plane and messing around with this sign. And by time you will get used to and things will be very easy for you. A promise. So, Alright, so before I end this video, if you want to leave your mark or your, if you want to leave your fingerprint on this course, all you have to do is to rate this course for me. So yeah, if you think that you're learning something valuable, all what's, what I'm asking in return is to rate this course for me. And it's just a matter of a few seconds, but it's really motivates me to give more knowledge to you guys. So rate this course and meet me in the next section. 17. PART 6: Download Atom: So high. So furthermore down the course, we will see a little bit difficult and advanced stuff on Python. And of course we will work professionally. So that's why I want you to don't want atom to use Biden and highlight towards and made things easier for us. So I want you to go to, go to Google and type in clad Artem and hit enter and then click the first, makes sure it's Atom dot IO writes and then hit enter. So just don't want atom for now. And once you're done, just switch to the next video. We will see how to use it with Python and how at, how atom it can make things even easier for us. Of course they will never, I will live and not on the description or in the research of this, of this video. A link where you can donate atom from the official site. So when you go to atom, click doll and writes, saw a mixture that you're going to download it on your bureau, By the way, Bureau, it's a French word, it means the desktop. So make sure that you don't own to download it on the desktop, on the are on the delish upstream or which are the downwind. So choose wherever place you want to dominate and then hit. Oncologists are safe. And of course it's going to take a few, a few seconds or a few minutes. So once you're done on, once you're don't want, atom meets me in the second video. 18. PART 6 : Atom getting used to it : All right, so finally in the end, when you're done, Dawn and atom go and click on the app. Harris, right, Harris or click on the app. And then what you have to do, you have to go to the Welcome guide and then go to the install a package, and then click Install upon upper installer. And then you're going to type in the search item. Just type in Python. Are right. And then dominant, the, this, this one, I E, Python. And when you're done, Donald in this package. So why we need to do on this bucket? So we want to download and install this package. So that's atom can support the Python language. Yeah. So then, so then when you're done, done all in all, what you have to do is to close the window and again, our peanuts so that it can be refreshed so that so then it's going to reopen, saw the latest one and this one and this one assault. And it's going to open up a window like this one. Then you have to click Control N or, or go to the file right here and click on create new file, or for short Control N. Alright, so let's type f, for example, x equal one hundred and forty five, forty five, and the print x. Okay? So of course you can resize the text if you come out, see it clearly by clicking control and the control and the plus signs so that space can make it a little bigger or control m with the minus so that you can resize it. Or you can click on the view and then click on the increased font size from right here, or decrease the font size or increase the font size. All rights. So let's save it, for example, the emissivity because we can't run, run it in atom. We can, only in atom can only type goals and see if it's this all saw ongoing to civic. I'm going to click Control or for, but I'm going to click File. And then I'm going to click Save As. And I'm going to choose the desktop are the Bureau to save its name it the following. So please pay attention to the following. Since our God is written with the Python, the Python code, I have to name it like the following. Dry dots, b, b, y, p, y, because P1, it stands for the Python, of course, which is like upturn an atom. That's this file is written using the Python language. Let's click Save. And as you have notice when I click Save, I clicked Save, the colors change. And that's what it's called, the highlights. And it's helped us to spot errors if we, if we have some errors, and because the text has a color and the numbers has our color a different color, and the function have their own colors. And to run the codes that we have just wrote unsafe, we gotta go to the commands or K. Let's go to the command. To go to the command prompt for Windows or to the terminal for Mac sauces. I'm using Windows, Iron Galaxy, God command, or k. So in the soil in the terminal, or what we have to do is first to type in C, D. So I've been, sorry, I have to type in cd space and then type where the place where you saved the cold, all the file in my case, the desktop. So I'm gonna type in that desk. It's up and hit enter. And here on my desktop. Then Japan in Python, where the name of the file, where, where is it? So in my case, try dot p y and hit Enter, and it's brands 1145 because the x value that is inside it's one. 45. Yeah. 19. PART 7: The if statement : Alright guys, so in this section we will see dF statements and where you use it and how, how to use it. So we use the if statement if we want item to do something specifically if a certain condition is present and true within Python. And the if statement could be either true or false, like for example, if this is true, do this. So let's jump into our Python and open a new file. So for example, let's type in F. 300 is smaller than, for example, 200. So when I'm going to get back to the second line inside, so since we're inside the f statement, I gotta print three spaces of immune, four spaces, 1234. So the spider can know that we're inside the if statement and biter will not execute this code. Only FDF statement will be true. So F 300 is smaller than 200. Then grant. Yes, for example. So let's get back to this. Another line. You may have noticed after the if statement line. The second line is written after four spaces because it follows the if statements and Peyton will lock on it only if the if statement is true. So yeah, I've already said that, but it's very important to save back to see you again. Okay, and the two dots right here, I'll also very important in the end of the if statements line. So let's save it. We're going to click cultural ES and save it. Tribal, spy, and save it on our desktop. All rights. So let's run our program. Okay, so we have got yes as an answer. Ok. So as you have noticed, we have got yes because this time the it's true, the if statement is true and it's printed and execute the code inside the if statement. So this time, let's add something, but outside of the block. And the soul, for example, what we are going to add, like friends, the end for example, parenthese. And so of course, anything that is outside the if statement is going to be executed. If I are under program because it's not inside the if statement. So let's run the program with a true under false saw softwares. Let's run the program with the if statement is set as true. So let me first saviors to separate. Click Control S. Try. And here we aids got yes, as well as DN. So this time we're going to run it as the FCTC is going to be false. So let's set 500 is smaller than 300. Okay? And as you can see, it's not the cold, it's not saved yet because there is still this little blue light are here. So just known as just keep your eyes on the blood. I'm going right now to click Control S. Area, it disappear. That's means that now it's saved all let's go back to our command and the tri pots BI and hit OK. And we got the only the n. So because the f statement wasn't true, it was false and its printed only at the end. 20. PART 7: The if statement inside an other if statement: And of course I can write f statement that is inside another if statement, like for example. So let's delete all of that. So I'm going to type in H and give it a literal argon to give it a value. So gone, going to get in the second line. And type in F, Okay? H is bigger than five, that means F, h is bigger than five. Then f. And at the same time, if h is smaller than 40, then what I'm going to do. So 1234, friends between 540. Exactly. So else, if it's not smaller than 40, so tepid L's and then get four spaces. So the parents then print age is bigger than 40 on L. So f, This statement is false. Or else I'm going to get here. That means F This statement is not true. If it's false, that means if the age is actually smaller than five. So else. And then I'm going to get the second line and prints. So what should I type in? Sorry. You are very young and less than five. Okay, so first is the number, the h value of five, and see what we are going to get to get. So I think we're going to get sorry, but you are very young and less than five. So let me save it. All right, so let's go to our Python and then C, D, this desktop. And try. And we got, sorry, but you are very young and less than five because h is five. What if the age is, for example, 20? What do you think? Which we'll go into get, so of course we are going to get age between 540. Perfect. So let's get control saved iOS to save it. And let's run it again, try dot P, Y. And here we got, we got between 540. So what if the age is bigger than four MeV 44? So lets click control S to save it and run it again. And we got a JD is bigger than falling. 21. PART 7: the else statement in python: So in this video, I will actually, we will actually not I, so because, because of the help of you, we will actually type and caught or rights are programmed together. That is professional. So don't panic reference even if I said professional. Thanks because the X will be easy and it contains only less than ten lines. If it fits professional, it's still short and it's still going to be easy. And takes will be so easy for you. So for example, let's imagine we are coding an app or a website that is silane tickets, tickets to apply or given tickets for free to party to only four only boys and girls. This R over R, That's R 819 years old or over. So I will tell Python, if somebody is less than 18 years old and I will not give him a ticket. But if he or she regardless, if he or she is a woman, if he or she is 18 or 19 or 2021, then I will give him a ticket to attend the party. So the second age, first and age, let's say maybe he's nine years old or she's nine years old. So F h is smaller, actually does. Let's start with if h is smaller than 18 years old, then all I want you to do is to print the following brands. Saudi, but you are still young. Like that. You are still young for this body. Alright? But, okay. F, h is equal or bigger. So to type this, we call this the sign bigger or equal to 1902 to 19. Then friends. Welcome, Something like that. Welcome. So my Bari. Yeah. Welcome. So it's going to print Welcome to the parasol before run, before running this code, let's see what will happen. So first of all, he, sometimes I prefer to think about the Python as, hey, yeah, he's a man. Alright, so the Python, hey. We'll read the first line. The first line which is age and the age is live. And he's going to take the line and memorize it on his mind. So it's going to jump to the second law. And F, h is smaller than 18, and h actually is smaller than 18. So this if statement, it's going to turn to be true and it has gone to Brent, Saudi. But you are still young for this kind of pairing. Or if, for example, the age is 21 is going to, Python has gone to memorize the age which is 21, and it's going to jump to the second line, the if statement. And this one is going to compare the 21 with the 18. And actually 21 isn't smaller than 18. Actually, 21 is bigger than 18. So he's going to jump to the next f statement, which is in the fourth line. And then it's going to compare between 2118 And actually 21 is bigger than 18, and that's it. It's going to print. Welcome to the party. So let's change it to nine or ten and save it. And let's run our program and see what we are going to cards. Alright? And we have got, sorry, but you are still young for this kind of party. All right, so now let's change the age to 21 and save it. To save it. So you got to get control. As you have noticed, it's a program, it's a professional program. And it's still easy. And anybody can write these kind of programs. It's very easy and short. So let's run the program again. And let's see now what we are going to get. So of course the age is 21 and the F. So the first if statement in the second line is going to turn out to be false. And then he's going to jump to the next Institute, which is in the fourth line. And it's going to be two. And it's going to print, welcomes the party. So let's see. And he says, will come to the party. So that's exactly the user. What's going to cut? If the user is 18 or past a goal is going to get Welcome to the peristyle. Let's see if user is 18. 18 years old. By this gone to say welcome to the party because the second in this second if statement is if the age is greater or equal to 18. All rights. So here we are now. So sometimes to not to write gods with more than if statement, we, sometimes we, we can use the else statement, which is like the following. To delete this one. Instead of the eighth F, I've got to type an else and then gone to deletes equal or greater than. Alright, then rent or come to the party. So this else statement is after the F statesmen. And if the, if, the if statement, the above one, right, this one, the first statement is true, then Python will not execute the else statement that caught. But f, the first if statement, the first one is false, then it's, the Biden would jump to the else statement and execute the code no matter how. Because the L statement isn't boolean, it's, it could be true. It's not a Boolean true or false. So it's going to be executed because it cannot be true or false. So let's save it. And make the H four years old or stupid. Let's make it 50 years old. Click save and run our code. And it says, sorry, but you are still young for this kind of barring. All right, what if we are going to change it to L? That means if the H, It's not 18 or smaller than 80, even if the age is 1 million. So and he's gone to print. Welcome to the party. And welcome is of course, welcome to the body. So as you have notice, it's 12345. God's five-line calls. And it's a program, it's a professional program by itself. So all what I'm asking you to do right now is to type in the same chord. So actually I'm going to live, it's the exact quote that we have typed together in the right here. So I'm going to leave it in the description of this video. 22. PART 7:the elif statement: Hi. So in this video, we will see the IF statement, which is like dance. L statement, LF is shortfall, else is shortfall, L, f. And it's means I have more than two options. I don't only have two options, like in the, in the previous examples, the f means that I maybe have four or six conditions, not like F. H is less than 18 due dates or FH is 18 or due to on the L's f statements means I have more than two options and, or conditions to choose from. For example, we will use the previous example, but with more options. Let's imagine we have a party, but it's open for everyone, but with conditions, for example, may be limiting. For example, less than nine years old are not allowed to attend or to enter the party. And between people who are between my 218 years old are allowed at at the party but not drink alcohol, for example. And above 18 years old, and the stems on less than 44 years old are allowed to attend the party and drink alcohol or whatever they like. And people who are over 44 years old are not allowed to enter the body at all. So we have, I think, four options. The first one, People are less than nine years old, there are nuts, a lot entered the party. People are between. And the second option people are between nine years old and 18 years old who are allowed to enter the party but not drink alcohol. And people, the third option, people who are between my teen years old to 44 years old who are allowed to enter the party and drink whatever daylight. And people who are above 44 years old, they are not allowed to enter the party. I know this is stupid. The there is no party with does kind of rules, but we have just create this kind of rules. Just jump on and explore the E, L's. Enough. The ELF statement, which is the else f statements, sulfurs the segment H and lecture on Concord to give it a value. And now we are going to Japan, the earth for the first option, which are for people who are less than. A nine years old, so F h is less than nine years old. So I want you to print something like you are not on let's be professional for a moment, sorry. But you are not allowed to attend the party at all. And now we are done with the first option, which are for people who are less than nine years old. And now we're going to jump in for the people who are between nine years old, 18 years old. So now we'll go and go to a o, f h is bigger than nine, and h is smaller than smaller than 80. Then friend, something like you on your phone along to at then Bari. So, but its leaf Q or code drinking. You will be kicked out immediately. You will be kicked out for sure. Okay. Okay. Now we're going to move to for people who are above eight AT 18 years old and less than 44 years old. Song called another LF. Age is bigger than 18 and age smaller than 44 years old. So when you go to print, print the following 1234 friends, you are allowed to attend or enter the body and drain wherever you want. Yeah. Okay. So now we're going to jump in for people who are above 44 years old. 044 years old, saw God else like adults. And for L's, and that's means this L's means people who are above 44 years old. Ellen's parents. Sorry. You are not allowed to turn to Paul. And you are to or very old. All right. So let's see what is going to happen. Okay? So if the age, for example, it's seven years old, it's going to lighten, is going to move to the first line and he's going to memory that age is seven years old. And then it's going to compare its if age is less than nine years old. And this statement is going to be true because seven is less than nine and it's going to break. Sorry, but you are not a lot at the party, are all. And for example, it's imagined age is 15 years old, he or she is 15 years old. He's going, saw Biden is going to go to the first line and memorized that h is 15 years old. And then it's going to move to the first dirt line, which is the first statement, if statements. And then he's going to compare 15 with nice or 15 actually is bigger than n. It's not smaller than my song is going to move to the next LF statement, which is at the line number six. And he's going to compare That's SFH is bigger than nine and at the same time, smaller than 1815 is bigger than one and actually smaller than 18. So this one is going to join to be two, and then he's going to present. You are allowed to attend the party, but if you're caught drinking, you will get you will be kicked out immediately from the party. And the soap, for example. What if the age is a territory, for example? So the Python, where is it going to do is going to go to the first lightened memorize that the age is territory. And it is going to compare it with the first if statement. And directory is actually bigger, not smaller than mine. So this one is determined to be false, and this one is also going to turn to be forced all the third if statement, it's going to be true because territory is actually bigger than 18 and at the same time smaller than 44. So it is going to grant you are allowed to attend the party and drink whatever you want or whenever you're like. What if the, each point is bigger than then 44, for example, 55? So what is going into Python Horace call to do is going to look. A verse to look inside the, the first line. And it's going to memorize that age is 5055 and he's going to compare 55 with 955. It's not smaller than nine. So this one is going to be false. And this one, it's going to be also falls. And this one is also called Perforce and is going to brand the last else statements, which is Brent. He's going to bring story but you are not allowed to attend the party. You are too old. That's literally racists, but it's just for the sake of this course. So, yeah. So first of all, this 27 years old and they may control S to save it. And let's go to our python and the desktop. Try p and a is Breton, sorry, but you are not allowed to attend the party are all, which is the first statement because H is seven. So this change h to, for example, 14. And let's get control save because this blue dot right here, it's means it's not safe. So complicated control S and its disappear. That means it has been saved. So let's run the file again. And it says you are allowed to attend the party, but if you were caught drinking, you will be kicked out immediately from the PI for sure. Ok. Because it is only 14 years old is allowed then the party but not drink alcohol. Ok. So let's jump in to this change. The age may be 221 years old or 32 years old. Its there'll be for 21 years old. That's gay control S to save it. And let's run our file again. And now it says you are allowed to attend the party and drink whatever you like or whatever you want. So again, let's change it to above 44, which is maybe 50 or 51 years old. And let's click control S to save it. And let's run the file once again. And now it says, sorry, but you are not allowed to attend the power. You are too old. So I hope you like this video and help you understand the LF statement. And of course, the LF statute, it's not like the L statement. If statement, it can turn to be true or false, just like the F statements. So please guys, if you like this course so far all what I'm asking from you is to rate this course from me. So, yeah, and see you in the next video. 23. PART 7: Task and game for u to do: Alright, so this is going to be a cognitive exercise for you guys. And I'm sure you can do just well, not just well, you can do perfectly well. Saw, let's pretend, for example, we are working on an online lottery or are gambling sites where people who bought tickets from stores, gambling or lottery tickets from stores, they can check their tickets online on this website that we are working on to see if their tickets are a winner or nuts. So of course, you will have to use only the two statements. The first one, which is the which is the winner statements, then print, you have won the lottery. Congratulations, you have just won 1 million or $3 million. And the second the second statements, the statements and brands on its Sorry, but this ticket isn't our winner. So start working on this program and do your best. And when you're done, let's, let's meet in the next video where I'm showing you the answer for this one. So please take some time and try to figure out the answer before jumping to the next video where I'm showing you the answer for this coding, coding exercise. So if you want some help, continue watching this video, and if you don't want some help, then stop this video right now, alright? 321, all rights. Since you are still watching this video, that means you really want some help. Alright, that's fun. Let me help you. First. You will write the card number or the number or the card number and give it a value, like a value. Or later on we're going to decide which value we're going to add it. Then jump to the next line and write your first f statement for the winner card, which could be something like if card number is equal to three in line seven for 5-1, like random numbers. And this first statement, it's going to be the winner. Statesmen did brains, Congratulations, you have 1 $1 million, for example. Then jump to the second line and type En l's 2-points. French, Sorry, but this isn't on winner card. Good luck next next time. So yes, I see in the next video with the answer explained in pure details. 24. PART 7: The answer for the coding task: Alright, so here we are with the answer for the exercise, the codon exercised for an independent video. So first of all, we have to identify the car number, saw a second car number, two points and later on, ok, a equal and later on we're going to give it a value. Saw the first line, F. F car number is equal. It means not give it a value, but its means equal to. So if card number equal to this is it's going to be the winner card deck. For example, the winner cut is 999971 two-eighths. That's just an example. So it means if the Soviets means if the person who bought tickets as the following number, that's mean his ticket is the winner one. So we're going to print to him something like Chrome grad situations. You have just long bulky. You have just won $1 million or you got the ticket that has $1 million. Alright? So what if a enter something else, like any other number, except this number right here. So we're going to jump in and type N else. That means if any other number. And we're going to read to him something like, sorry, this is not the winner ticket. And that'll be professional and I've been good luck next time. All rights. So as you may have not us, it's very simple, very, very simple. So let's click Control S. And first of all, let's right, type in any number. For example, the user has a ticket that's holds the following number, 9999872 phi, just as an example to 57. Ok, let's save it and let's run this code. So I'm going to go to the R command and then cd and this top dry dot p y. And here we are. It says sorry, but, okay, this butts. Sorry, but this is not the winner ticket to good luck next time. Okay. What if it's the winner tickets? So let's type in the number for when our ticket, which is four nines and then 7171, 28S. And let's save it. And let's run it, run the program, or run the file again. And it says Congo jews knew have just won $1 million. Yea. So as you have notice, it's very, very easy. Texts are really easy and I'm sure you you were able to figure it out. So that's was orbits and see you in the next section. 25. PART 8: The while loops: All right, so in this video, we will see the loops do while loops in Python, do-while loops will let the program looping in a circle as long as the while loop is true. And of course, it's not going to stop until it turns to be fault. The white lobby turns to be false, not true. Okay? Or if we set a break on the, on the while loop. So let's see this in a real example and study its behavior and how bid function. So for example, let's maybe a which is equal to one. And then ongoing tech bent while a is less or smaller than five, then what I wanted to do, I want you to brand a. So I want you to print a again. And of course this kind of map, it's infinity. That means it's going to start look below and around. It's going to print 111111 for forever. And it's always because a, it's me, it's, we give it the value of 11. It's always smaller than five. This is basic math. It's always less or smaller than five. So of course it will start looping forever for unknown, not like forever, but until your laptop will break down and smack and fire starts coming out from your laptop. Or maybe until you're not taught, will run out from electricity. So the program will just keep printing 1.1.1 until something bad or something good happened to it. So of course, I'm not going to do that with my laptop unless I want to drive my laptop crazy. Yeah. Or or you know what, I'm going to regret this later on, but let's do it. Let's run this program. So, yeah, so let's click control S to save it. And so a is one represents a, okay, then in the end, okay, not that. So it's just run the program for now. Okay? And as you may have notice, and as you can see, it's printing AAA for a brand is not going to stop until I stop bits by myself. So let's see how much RAM and processor it's taken. Ok, so I have a t gram in my computer and it's taken only 3.9.8 and it's taken like thirty two, twenty four, twenty five percent from the processor. But it's not that much. So I thought it's going to burn off my computer anyways. Let's stop it. And yeah. So I was thinking something's going to happen by comparison. That was normal. Ok, now let's change things a little bit and I'm going to add a break. I'm going to add a break to EDS. And by typing a glass. Equal one. So what that means, that's means each time the loop has to print to one, which is the volume of a. It will add one to the value of a, and it will become a plus one, the value of a which is one plus one. And then the value of a, it's going to turn to b two, and the next time it's going to turn out to be three, and so on. So let's see what it's going to happen before running the program while saw a call to print a OK. That's file and save it. Alright area or no, it's good. So what is going to happen? Saw biotin. He's gone today. The value of a which is one and then is going to memorize it's a so-called 21, and then it's going to drop onto the second languages. Whale a is smaller than five in this call to see if this is true or false or, and it's going to be that tool because one, it's actually smaller than five. And then he's going to brands 11 and then is going to add one, which is this one to the value of a, which is this one. And it's going to be two. So it's going to print one. And then he's going to turn and to have again the value of a and a note no longer it's going to become white's going to become too. And then it's going to see if do is actually smaller than 502, is smaller than five. So it's going to print a, the value of eight, which is two. Solid has gone to France to, and then he's going to go to the Portland and he's going to bite, then he's going to add one to the value of a, which is two, and it's going to become tree. And then the binder is going to memorize that the new value of a and it's going to compare it is three smaller than five, it's going to be a true tree. It's actually smaller than five, is going to print the value of a which is three. And then when he's going to bring it is gone to jump the fourth line and add one to the value of a. And it's going to become four. And then four is smaller than five VS. What is lambda phi? So this while loop is going to be true and then has gone to print the value of a which is four. And after that, it's going to, bitumen is going to add one to the value of a, which is four. And it's going to become five. Saw, it's going to become the value of eight is going to become five. And then is five smaller than than five? Not five is equal to five. Soy sauce gone to print five, and it's not going to add the two, add one to the value of a which is five. So that's exactly what's going to happen. So let's run our program and see what it's going to happen. So let's add another brands. Grin. I'm done. Ok. So it's going to friends, 1-2-3-4-5, and it's gone down to friends on dun guess or scraped control S to save its down the mirror under program. And here we apply don't types 1234 and then DN. So yeah. 26. PART 9: The error types: Of course, and while you are trying to topiary some cards on, on discourse and build your own program. You got some errors. And that's something which is totally normal, that song, that's something which is perfectly normal if unprofessional, make errors while current and an error in Bitcoin. It's like a biotin tried to tell you that he didn't understand something from your code. And something is obviously not a recognizable by Python and Python Estonia. And to warn you that something might not be perfectly working and it's something that needs to be changed. And the best thing about it is that Python tells you which code line the air is placed and should be fixed n, as well as to which type of the air is that error. So please don't take off. Errors are something that are, that are bad and you shouldn't make. Actually errors are the best thing that can happen to you. During your learning and training period. Also, I have learned the Python as will our seal Dodge and Unity game development by making errors and making a lot of errors. And the best thing about it all is that the Python will tell you, which is that, what kind of error and what type of error is that? So it will be easy for you to correct it and fix it. At. In this video, I will show you must errors are going to pop up and shows when you are working on basic coding stuff. So here we are. Just, are just examples. The first one, which is syntax error. And this error will type will show up when you forget something like quotation mark or and brackets. So it's up and our atom. And here we are. So for example, if I forget our Cartesian or our brackets, For example, I forgot this notation right here. I'm going to click control S to save it. And I'm going to run the file again. Okay? And I have not, as we have got a syntax error. This one, the first one, the syntax error right here. And it shows the exact called line that we have to change wishes brands, the end. I'm done. This one. Okay. This one. The end, last code line, this one. All rights. So the next the next error, that's my pop. And when you're typing some costs, which is the type error. And when you're, this kind of error is going to pop up when you try to add a text to a number like for example, atom plus one. And the next, the next type of area, which is the 0 division error, like for example, trying to type, for example, for the fly that by 0. So this will never work out because you cannot divide any number by 0. All right, and the next air, that's my pop-up when you're trying to build your own app or your own program, which is the name air default, air the name error. And this one, it's microscope if you try to use a variable that has never been defined on the program. So for example, let's say I've been atom plus plus one. As an example, grave control S to save its saved. So let's run the program. And as you may notice, it prints 1234, but in the end, it showed the name error, which is Adam, and it says that Adam is not defined. So those are the four kinds of error that's my of up to you if you're trying to build your own app. And of course you need to memorize them and study them because it's cooled on, make things very easy and it's going to save you a lot of time to know the exact error that you should fixed wherein program that you're trying to code. 27. The end python 3: Well, it was an amazing journey is spent to get her as we'll learn some staff and experienced some new stuff within the byte, then if you think this is the end, Well, you are sadly mistaken because this isn't the end. Maybe it's the end of this course, but surely not the end of the journey and not the end of the program in and called it. This course is being made not just to be watched and then turn or way none up. I want you to learn by doing what I have. Just ditch you. I want you to experience thick and they want you to learn things by experiencing them. So all I can tell you is that start programming new ideas. Like, for example, pretend that a customer wants you to code a particular app or a program that do something specifically. So in the end, please guys, if you think you learned something valuable, Please rate this course for me. It will really help me and it will really motivates me to give more to people. So yeah, congratulations for completing the course and have fun.