Python 3: A Beginners Guide to Python Programming | Tony Staunton | Skillshare

Python 3: A Beginners Guide to Python Programming

Tony Staunton, Reading, writing and teaching.

Python 3: A Beginners Guide to Python Programming

Tony Staunton, Reading, writing and teaching.

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
131 Lessons (7h 53m)
    • 1. Welcome to Beginners Python 3

      1:56
    • 2. Skillshare 101: Getting the Most From This Course

      3:13
    • 3. Topics covered in this course

      2:20
    • 4. Install Anaconda, Python and VS Code on a Mac

      14:41
    • 5. Install Anaconda, Python and VS Code on Windows

      8:35
    • 6. [Old] How to install Python

      3:08
    • 7. An introduction to Python variables

      2:24
    • 8. An introduction to Python Strings

      4:04
    • 9. How to concatenate strings in Python

      5:29
    • 10. Using Python's string title() method

      4:39
    • 11. The Python find() method

      5:10
    • 12. The Python lower() method

      1:44
    • 13. The Python replace method

      3:05
    • 14. The Python strip() method

      3:48
    • 15. How to add new lines and tabs in Python

      1:33
    • 16. Working with integers in Python

      2:42
    • 17. Working with floats in Python

      1:13
    • 18. How to convert numbers to strings

      4:39
    • 19. What are Python comments

      2:03
    • 20. Introduction to Python lists

      5:54
    • 21. How to edit lists in Python

      6:29
    • 22. Adding comments to our lists

      3:31
    • 23. The Python pop() method

      10:20
    • 24. How to organize a list in Python

      5:09
    • 25. How to find the length of a list in Python

      2:20
    • 26. Looping through a list in Python

      5:57
    • 27. An introduction to numerical lists in Python

      0:52
    • 28. Python's range() function

      1:50
    • 29. Working with lists of numbers in Python

      4:29
    • 30. Slicing a list

      3:33
    • 31. Looping through a slice

      2:02
    • 32. Copying a list in Python

      1:39
    • 33. What is Indentation?

      1:32
    • 34. Lecture 31 Tuples

      4:52
    • 35. An introduction to Python's input statement

      3:21
    • 36. Python's if statement

      2:48
    • 37. Conditional tests with Python's if statement

      2:50
    • 38. When values are not equal to each other

      1:58
    • 39. Comparing numbers in Python

      2:02
    • 40. Python's and condition

      3:08
    • 41. Python's or condition

      3:17
    • 42. The Python in keyword

      3:37
    • 43. Python's not in keyword

      2:43
    • 44. If elif else chain

      5:03
    • 45. Multiple conditions

      3:11
    • 46. Updated if with lists

      7:31
    • 47. Muliptle lists

      3:12
    • 48. An Introduction to Python dictionaries

      2:55
    • 49. An Introduction to Python dictionaries Part 2

      2:14
    • 50. Python in operator

      6:17
    • 51. Get method

      1:51
    • 52. Editing values in a dictionary

      2:53
    • 53. Looping through a dictionary

      6:09
    • 54. Other ways to loop dictionary

      2:58
    • 55. Using Python dict in list

      6:24
    • 56. List in dictionary

      4:57
    • 57. Input prompt 2

      2:06
    • 58. While loops part 1

      1:42
    • 59. Quiting a program

      1:53
    • 60. Using a flag

      3:43
    • 61. The break statement

      3:23
    • 62. Python Continue statement

      2:20
    • 63. Updating lists in a while loop

      6:14
    • 64. Remove from list

      2:39
    • 65. Simple property rental program

      6:34
    • 66. An introduction to Python functions

      2:21
    • 67. Passing info to function

      2:22
    • 68. Passing arguments to a function

      0:50
    • 69. Positional arguments

      4:13
    • 70. Keyword arguments

      3:05
    • 71. Keyword arguments

      3:05
    • 72. Default values

      4:19
    • 73. Return value

      4:06
    • 74. Optional argument

      5:31
    • 75. Return a dictionary

      3:41
    • 76. While loop

      6:36
    • 77. Books available

      2:56
    • 78. Passengers function

      7:56
    • 79. Not modyifing a list

      1:54
    • 80. Arbitary arguments

      2:31
    • 81. Arbitary arguments 2

      2:14
    • 82. Passenger seats

      3:22
    • 83. Arbitrary keyword arguments

      4:40
    • 84. Importing full module

      4:53
    • 85. Importing specific functions

      5:24
    • 86. Function alias

      1:53
    • 87. Module aslias

      1:20
    • 88. All functions

      0:58
    • 89. Class introduction

      1:30
    • 90. Book class

      5:20
    • 91. Init method

      3:09
    • 92. Instance of a class

      2:37
    • 93. Accessing attributes

      2:55
    • 94. Calling methods

      5:56
    • 95. Multiple instances

      1:40
    • 96. Ereader class

      7:58
    • 97. Attribute default value

      3:30
    • 98. Modify directly

      2:05
    • 99. Modify through a method

      2:33
    • 100. Imcrement attributes

      3:22
    • 101. Inheritance

      8:12
    • 102. Child methods

      4:30
    • 103. Override methods

      3:02
    • 104. Instances as attributes

      6:10
    • 105. Import a single class

      3:58
    • 106. Multiple classes in a module

      3:31
    • 107. Multiple classes from a module

      3:57
    • 108. Import an entire module

      1:23
    • 109. All classes from module

      0:45
    • 110. Working with files in Python

      1:13
    • 111. Reading entire file

      3:57
    • 112. File paths

      3:28
    • 113. Reading line by line

      2:45
    • 114. Making a list from a file

      2:28
    • 115. Working with a files contents

      2:44
    • 116. Writing to an empty file

      2:31
    • 117. Appending to a file

      3:38
    • 118. An introduction to exceptions and errors

      0:53
    • 119. Zero division error

      0:53
    • 120. Try except block

      1:40
    • 121. Handling exceptions

      5:43
    • 122. What to do when a file is not found

      2:02
    • 123. Analyzing text

      4:48
    • 124. Multiple files

      2:43
    • 125. Failing silently

      1:21
    • 126. Json dump function

      2:52
    • 127. Jason load method

      1:54
    • 128. Storing & reading data in Python

      7:04
    • 129. What is refactoring?

      0:42
    • 130. Testing your code in Python 

      9:08
    • 131. Conclusion & Thank You!

      1:27
200 students are watching this class
  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels
  • Beg/Int level
  • Int/Adv level

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.

24,410

Students

9

Projects

About This Class

No experience in programming required. Learn practical Python skills and get up and running in Python today.

Begin your Python journey here. Over the years I have tried to learn many programming languages. Most of the time I never got past the basics. But Python is different. Python is beautifully simple and yet incredibly powerful. It's also easy to read which I love.

If you have just decided to learn programming then you have made the right choice, so take a breath. Python is very easy to learn which means that you will be through the basics and on to writing programs in a very short time.

Python is a one-stop shop.There's a Python framework for pretty much anything, from web apps to data analysis. Python is often heralded as the easiest programming language to learn, with its simple and straightforward syntax. Python has risen in popularity due to Google's investment in it over the past decade (in fact, one recent study has shown Python to be the most commonly taught programming language in U.S. schools). Other applications built with Python include Pinterest and Instagram.

This course is a step by step guide through the Python 3 programming language. You will go from a complete Python beginner, installing Python to creating your own programs.

There are over 130 lectures in this course and over 7 hours of video each one detailing a specific aspect of the Python programming language.

This course will walk you through:

  • Variables

  • Strings

  • Numbers

  • Comments

  • Lists

  • User input

  • Conditional tests

  • Dictionaries

  • While loops

  • Functions

  • Classes

  • Files

  • Error handling

  • and Tests...Phew!

Get programming with Python today and enroll now.

Meet Your Teacher

Teacher Profile Image

Tony Staunton

Reading, writing and teaching.

Teacher

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.

Your creative journey starts here.

  • Unlimited access to every class
  • Supportive online creative community
  • Learn offline with Skillshare’s app

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.

phone

Transcripts

1. Welcome to Beginners Python 3: Hi, everybody. And welcome to on beginners Quick start guide to piping. Firstly, thank you for your interest in this course. I really do appreciate it. Now comes the question. Why? Let me answer that for myself. I have studied seven programming languages. My career on each time I've stopped just past the basics except with fightin pipe is beautifully simple and yet incredibly powerful. It is also easy to read, which I love. All of these things help make the learning curve up Iten much, much easier than other languages. Appointment Very used to learn, which means that no time at all, you'll be past the basics on learning a new valuable skill. Piping is used for many purposes video games, Web apps, business tools on, most recently very heavily in data science. This course is a step by step guide. True, the pipe entry programming language. Each lecture is built on top of the last on almost every lecture contains a program for you to try in the past. The reason why I have failed to learn a programming language is because I did not stick at it. You will not have that problem. Not only is Spuyten quick and easy to learn. You also have me as your accountability body that that might sound like hogwash. But believe you, me, it is valuable. Ask me anything. Some. Your code samples venture frustrations. When you get stuck on, you will get stuck and keep in contact, because the best way to learn the program is to practice on Talk about it semi a Q and A whatever it might be getting contact and in return, I asked her only one thing. Stick at it, even if it's just one lecture a day stick at it. Pipe has not learned by observing, but by doing so do the longest. Lecturing. This course is around 10 minutes. So when you don't feel like programming, ask yourself. Can I spare just hand minutes? So let's not waste any more time on Let's get started. Thanks for listening, and I'll see you in the next lecture 2. Skillshare 101: Getting the Most From This Course: Hi, everybody. In this short video, I'm just going to give you some tips and pointers on how to get the most off the course when watching it in scale share. So here we are, open on piping step by step. Now, this could be any course, because the settings throughout scale share our standard for any course. So it doesn't matter what course you are looking at. This tutorial will still be relevant. So way over here in the viewing window, on the bottom left hand side, you can see a speed icon, so if you click on that, you're able to adjust the speed Oprah down. And that's the playback speed, the voice speed. So if you find in some of the lectures that I'm talking about, slow or you just want a quick recap, you can always up to speed. Next to that, you have a 15 2nd rewind button, which is handy if you're kind of struggling with a concept or with a topic, and you want to rewind a couple of times, which I often do another courses just to make sure that I get the point and I get the lesson over here on the right hand side. You conceive you all notes now, not all of my lessons, but some lessons will have a view note option. So, for example, in lesson number Tree How to install piping You can see here view notes, and I have a note here and have to install Platon, particularly on Windows. It's liberties. You're on a Mac. So this note is relevant to Windows users, so you can see there. It is a full note on how to install piping and have to get up and running with some caveats in Windows next to the note pin, you can see the volume button with the self explanatory volume. Up and down on next to that is the full screen toggle on enough. If we scroll down a little bit, you'll see here the community button. So we click into the community on 68 Means has been 68 questions asked and answered. The questions are varied from very simple things, like what is the print statement to very complex things and very complex questions on the pipe and language and structure? But chances are any question that you might have will be in the community section, so I encourage you to have a flicked through it. Maybe do a control on F unsearched for a topic or a keyword that you're looking for now. Every month I launch a student challenge, so June Student Challenge has just finished. So we going to project and resource is you'll see here start of the June challenge. So if you're interested in furthering your scales after you've finished the pipe, of course, or any one of my other courses, you can check out the projects and resource is and see if there's a student challenge going on there now to keep up to date under projects and Alan Challenges or any updates on might release the course. I encourage you to click Follow on, follow me so you can see any updates on new items that I might issue. One of the most common questions that I get in the community section is the question asking me is too cold throughout the course available to download while it is. And if you go to get Hub and Sarah for T Staunton, which is my user name, you'll be able to see all the courses and all the code that I have running. So here are several courses you can even see their to student challenge. You'll be able to find the code in there for the student challenge. But for this course piping beginner's guide, There you go. Section two, Section 345 All the code is in here. You're able to browse and download if you want to make your own modifications. So I encourage you as you're setting up Iten on as you're getting started in the course to visit my get home page and download the project files now. One final thing. If you are taking one of my courses on, you are enjoying them, which I hope you are. Please. If you feel so inclined, leave me a review or some feedback on how we might improve the course or improve your experience within the course. That's it. I hope that was easy enough to follow. Thanks for listening, and I'll see you in the next class 3. Topics covered in this course: Hi, everybody. I'm welcome to this course. First, let me thank you for purchasing this course and showing an interest and learning the pipe country programming language in this brief lecture, we're just going to outline what you're going to learn to read the course. So we kick off the course with variables on Indus Lecture. You learn to store information in variables on work with text, a numerical values. Next, we're going to look at strings on what our strings, but a sequence of characters. And we're going to look at how to use and manipulate them. Following that section, we look at numbers. So have the compare numbers to see if they're equal are not equal to one another on how to create a list of numbers. Following that, we look at list which had a workhorse of pie eaten on form. Many of the fundamental parts of your programming this store as much information as you want and one variable allowing you to work with that data efficiently. You'll be able to work with hundreds, thousands and millions of values in just a few lines of court. We then move on to conditions which help you to control the flow of your programs. So what happens of user goes one way or another way, which your programs what to do? Your programs do. Next. We look at dictionaries and dictionaries, allow you to connect different piece of information together, like lists. Dictionaries can contain as much information as you need the store. Then we'll look at the user input, gathering input from your users to make your programs more interactive and fun. Next, we look at loops, which allow your programs to repeat certain blocks of code. Following that, you're right functions, which are names blocks of code that perform a specific task and can be run whenever you need them and shared with other programmers in classes. We movinto Object orientated program classes allow you to model real world objects such as dogs, cuts, people's cars, spaceships, whatever you want so that your code can represent anything real or abstract. Then we move into working with files. You'll be able to store data so that when your program closes, you'll be able to read it back into your programs again. Next, we look at how to handle errors on what happens if your programs crash unexpectedly on how to avoid that. Then we look at tests writing tests for your code to help check your programs work the way you intended them to. As a result of this, you'll be able to expand your programs without worrying about introducing new errors or bugs. Testing your code is one of the four skills that will help you transition from beginner to intermediate programmer, and they are the main topics covered in this course. Thanks for listening. And let's get started with setting you up with fightin. I'll see you in the next lecture. 4. Install Anaconda, Python and VS Code on a Mac : Hi, guys. I'm welcome to this lesson where we're going to be discussing and seeing or demonstrating how to install on the conduct and fightin on a Mac. So as you can see on my desktop here I have my terminal open and open the terminal. Simply go on a Mac, go into your finder, go to applications scroll all the way down to the and until you see utilities double click that. And here's time. No, Here it's a double click time. Noto open. It pops back. Open here now what you might do as well because you're going to use terminal a lot when you're programming or as a coder. So down here in the dark, right click terminal options. Now you can see here I have keeping duck tick. So take that and your terminal is always gonna pop open down here in your doc save you have no back into utilities folder every time. So here I'm here now in the terminal. So that's for a see what variation of piping I have onto that Simply type fightin space hyphen. Capital V. Okay, heightened varies in 2.7. So an older version, so as you can see the Mac comes installed with an older version of piping, so we don't want to use very in 2.7. We want to use the mortar Modern, a newer version tree, and it could be 3.7 at this stage of 3.8 or 3.9, whatever it is. By the time you get to this lesson now, in the lessons to commandeer skill share class, you'll notice that I'm using sublime. I'm upgrading this class at the moment, and as I do, I've stopped using sublime. I'm now using Anaconda on another text editor, and you'll see why, as we install on a condom before the moment that's focused on installing and a condom on how to use it. So to install Anaconda, go to your Web browser. Let me go there now and simply type in Anaconda into your search bar on the 1st 1 that pops up for me. Anaconda, the world's most popular data science platform. Click that on here we are now. You might be thinking to yourself, you're not gonna do data signs that's OK on the conduct will automatically install piping on a number of other very helpful tools. So even if you've never gonna do data signs, it's still go to use Anaconda. So along the top, the first item is products hit, individual edition and download. No, we're on a Mac 64 bit graphical installer. So take the one that suits you. But my recommendation would be to use the graphical installer. So let me download that. Now, the following the following window pops up and you can do with this as you like, create an account, watch a video tutorial or read the documentation. I'm not gonna go true that now, but feel free to do so on your own time. Now, it's going to take a few minutes to download Anaconda because it is a pretty large file. So, as you can see in the bottom left hand side of my screen six minutes left. So I'm gonna pause the video and come back to you when it's ready. See you in just a moment. Okay, guys. So here we are back. And as you can see in the bottom left hand corner, the installation has finished. So let me click on it. So as you can see your prompted to run a check to see if the program can install. I'm gonna click. Continue. Continue again. Continue. Agreed to the license. I agree. I'm going to leave it in its default location and stole. But in my password and the installation has begun. Depending on your machine, the insulation can be pretty quick or a con. Take a few minutes allowed to access your downloads. Folder click. Ok, now you can see this message here asking if you want a free trial of pie charm on Anaconda integration. I'm not going to use that. So I'm just gonna click. Continue. Summary. Everything looks OK. Close move my download file to the been I don't want to take up disk space. So Anaconda has now being installed. So where does it go? We'll jump into your application list. Let me do that now. And as you can see here, Anaconda Navigator. So click. That doesn't take a moment to open up. No. When you first open Anaconda, it'll ask you if you want to send some stats back, that's totally up to you. Whatever you want. Now, here we are on Anacondas home screen. And as you can see, several items have been installed on are ready to lunch. So what have we got? We have Jupiter lab. We have Jupiter notebooks. We have a console application on we have Spider, which is a data signs I d. E on the left hand side of Anaconda. You see home on Environment Click Environment. Now we're going to get into environments in a later lesson. But this is just to give you an idea. Here, you can create as many environments as you want on environment. On your machine are sandboxes. So their areas or folders that you and stole or you create and you can work in so you could create a new environment called test one. On in there, you could have a version of piping. You could install libraries. You can stole files. Whatever might be on it won't impact your base installation of piping. So it's always a good idea to work in a virtual environment. I will see you have to do that later on. It was a moment. Let's go back to home now. You second time here or the second square here is Jupiter notebook. And as you can see from its description, it's a Web based interactive computing notebook. Now a lot of data signed us are using Jupiter Notebook. I have to say it is a fantastic tour, So let's launch that and take a look. Okay, so here it is. And as you can see, it gives me a folder structure. But what I can just do on the right hand side here, it's simply create a new piping trait notebook. Now, in a later lesson, we have dive a little bit more into Jupiter notebooks, but it's just go to know that you can start coding piping right away. So prints Hello, hit, run. You can see the output directly on screen in later lessons. We look at this in a little bit more detail, so now you have Anaconda on Jupiter notebooks installed and, as you can see here in the right hand side were running piping trait. So we're running Anaconda with Fighting Tree, even though under Mac we're running piping 2.7. It's just double check that version again. Yet 2.7. So I was mentioned at the beginning. Anaconda installs pipe along with it, so very helpful. Now let's discuss the cold editor that I'm starting to transition into which is visual studio code. Let me jump into my browser. So across here at the chrome, here we go. I simply typed in Microsoft Code. First thing that pops up visual studio code. Click on that now code. Everything redefined. There's all the highlights of it that's download from Mac. We'll give that the moment. Download and come back. Okay, so once again, bottom left hand side A download has complete and we click it open. Here it is. Let's run it! Okay, Visual studio code Now to get visual studio code working with Titan, we need to install the pipe extension. So as you can see here, tools and languages installed support for various languages. But the second here listed is piped. Click on that so you can see here down the bottom, installing additional support for fightin. Let's have a look. This bottom left icon here is extensions. Click on that. OK, Piper is installing. So this is the one that we want. We want the Microsoft extension for piping. Now it's being installed, so here it is. Here, As you can see, it's had 22 million downloads. This will allow us to run piping within visual studio code. And for more information, just simply scroll down here and you can see the quick start guide. Now we've installed the pipes Interpreter via Anna conduct. So that's what we can use. And how do we do that? Well, as you can see, here in the bottom left, it's time you to select your pipe and terrible er by clicking on the status bar. So the first thing we need to do is create a new pipe fire or open up pipe fire that we may have saved somewhere else. Semi closes Win the World Open New flight A folder, New untitled file. So let's do it as command the new. Here we go, Let's say file save as what we want to save it. And I want to say, but test 01 it's gonna saved on my desktop, so I'm just gonna save it here on my desktop. Make sure you give it Duck P. Why extension? Otherwise it's not gonna run correctly. Very important that you ended with Doc P y say that now, as you can see, we got a whole host of messages and that's OK. We'll take them one at a time. So the 1st 1 that pops up you may or may not get this depending on your Mac set up. So if you do, and sometimes this happens with new Max, fightin Tree Command requires the command line developer tools. Do you want to install that click install? Except that There we go. I'm going to let that run. Obviously, I'm not gonna make you sit here for seven minutes. I'm watched this blue bar move slowly across the screen, so I'm gonna pause this and come back to you in just a moment. Okay, guys. So here we are. Back, as you can see itself For what? Installed click done. Okay, So we're still here in visual code or for no one. I'm just going to say code or Microsoft Code. And as you can see, where inner test 01 dot p WiFi no one error messages disappeared or one information that disappeared from the bottom right hand side. Let's take a look at the force one here or the one on top. You selected the Mac OS system install of pipe, and that's not recommended. That's OK for the moment, because if you look over here to the bottom left off code Microsoft Code. You can see here quite in 2.7, which is the one that we saw at the very start to this lesson and the one we don't want to use. So here in this box again, you can you can select pipe interpreter and look it up. There's our anaconda or conduct install or piping interpreter. We want to use that one. All you have to do is click that down the bottom. Our pipe interpreter has changed a tree 0.8 point three. They're the one that's the one you're going to need for all these lessons. And indeed not even the lessons within this class for my lessons for running any kind of modern pipe. And you really need version, tree or both. No. The last message that we have here, Linda is not installed. So let's just install that now. If two options to install it pip or conduct as we've been using conduct, I'm going to stick with that one. Okay, that's complete. Now, let's type in some piping here. Print. Hello? You can say that with commanding s over here in the right hand side, you'll see a green play arrow hit that, and a file has run down the bottom. Hello. And that's how simple it is to run a file or to run a pipe file in Microsoft Code. Very simple. So every time you start the Microsoft Code, just always double check your pipe interpreter. Sometimes it can jump back to 2.7. You always want to make sure it's in this version here and, as I mentioned before, will discuss more about the different variations of fightin on how you can use them in virtual environment in a later lesson. But this is enough to get you going in the class of the com. You'll see that I'm using sublime text editor. I am upgrading this class at the moment on all of its lessons, so feel free to stick with this set up now, which is now my preferred UN recommended settle. And that is Anaconda on Microsoft visual studio code, all free to download on all free to use. So even though throughout the classes you're seeing me in sublime and you'll hear me say things like control and be or command and be to run the pipe and file. You now know all you have to do is hit this green arrow to run your pipe and code down here is the terminal. And just for some reference or an F Y I, as you can see here, it says base at the start of our terrible line or a command line here and that means were in our base environment. So let me just pull this across here, shrink that window down environments means putback, opener code. So we're in base and that's the base or the default environment of Anaconda. We can create more and we will do in the later lesson and then all pop up here. And indeed, we could navigate into them from our terminal. And that means that anything we do, that various environment won't impact or effect our base environment a little bit confusing . But when you start using virtual environment, they really will become second nature and you wonder how you ever lived without okay guys, you've seen how to download install Anaconda. You've seen how the download and install Microsoft Visual Studio code. And as I said, this is now my preferred development environment. So go ahead if you haven't already and set all that up and then I'll see you in the next lesson. Thanks for listening. 5. Install Anaconda, Python and VS Code on Windows: Hi, guys. Welcome to this lesson where we're going to look at and demonstrate and discuss how to install Anaconda and pie eaten on a windows machine. So the first thing you need to do as you can see in my Web browser here is go to anaconda dot com. So type that into your browser. Whatever that maybe I'm head there now. The top left hand side, you can see products hit individual edition, then just scroll down slightly and click Download. Bring it to the end of the page. Select here. Windows. Obviously your operating system select whichever one suits your system. 64 bit are 32 bit, so I'm going to select 64 bit graphical installer. Get this pop up. You don't have to do anything with that. If you don't want to. Just close that and I'm going to save the download file. Now. This is gonna take a few moments, so it back to you in just a minute. Okay, guys. So here we are back. And as you can see down the bottom, my download has been completed. So let me pop open the folder downloads. Let me double click it. Okay? Here's the set up. Welcome to Anaconda version Tree 64. Bit Click. Next. A great of the license. Okay, so it's just for me. This may depend on your system set up. For the moment, it's just me. I'm not going to change the location. So users Tony Staunton, Anaconda Tree. That's perfect. Hit Next here. Add anaconda to your path environment Variable. I know it turns red. It looks live. It's scary, but it's okay. What this will know you do is run and a conduct and conduct commands from your command. Prompt. You can see here down the second option register Anaconda Tree as my default piping 3.8. So what this will do is allow water programs such as piping tools for visual studio pie charm. I d es Pi Dev, and so on and so on. The automatically detect Anaconda as your primary version of pipe. That's exactly what we want. Hit installed, our installations being completed, as you can see here completed our status. Byers Green hit. Next. It gives you the option to use pi charm or free version or free trial version. Pie charm That's up to you. If you want to use that or not hit next. Now give you two bookmarks, Anaconda Individual tutorial on land. More about conduct. I don't want to use them. Just gonna take them and click Finish Perfect Anaconda has been installed. How do I know? Then we hit my windows icon down the bottom left recently added Anaconda Residency Anaconda Powershell as well. So that's open up Anaconda or Anaconda Navigator Just like just a moment of load. Okay, so here's the Anaconda Navigator. As you can see, the first pop up screen do you get is asking you whether or not you want to Sand stats back the anaconda for troubleshooting. I'm just gonna one click that Okay, Don't show again. There we go. So as you can see, Anaconda comes installed with several applications and each one of them here said to these don't squares. Now the next thing we want to do is download a development environment and for our purposes , I'm going to use visual studio code, which is the free i d from Microsoft. So back to my Internet Explorer Here I am. It's gonna type in visual studio code. Here it is here, the 1st 1 that pops up. Visual studio code code. Everything redefined. Click that don't know for Windows. I'm give that a moment to download. Okay. Or download has completed. Let's open up the folder. Here it is. Here. Double click it to run it except the times in conditions. Next, I'm not going to change the install location. Next. Create a short could. Perfect. Asked me if we want to create desktop icons. I'm not going to change any of the settings here. And finally insult. Okay, there we go. A nice quick install, as you can see Lunch visions. Duty was tick. So let's do that now. Click Finish. Now, here's visual studio on What we need to do is install pipe or the pipeline extension. So bottom left hand, I can hear thes tree squares. Thestreet cubes would won't lose here. Extensions. There you can see. Look, first on hair pie eaten installed. Click this little green install button. Here, give that a moment of work away. Okay. When the little green button changes to look blue button, you know Piper is being installed. You got a little information message down here. Just click. Got it. That's OK. I'm going to close this window. I'm gonna come out of extensions. What I want to do is create a new heightened file. It's a file. New file. Let me just expand this window to make a bigger There we go. Perfect. So let me type in a small bit of pipe print. Hello? There we go. Nice and simple. Then he saved this as a pipe and file file. Say, that's for the moment. I'm just gonna drop it on my desktop. I'm just going to say that as Hello. Stop, Ey save. Okay, you can see that visual code. Recognize it as a pipe and file on. The syntax is being highlighted Over here in the right hand side, you'll see this little green arrow run pipe and file internal click that There we go down the bottom. Here, you can see our terminus popped up on by clicking the green play arrow. Her file has run on an output print. Hello has been successful. Now, something to note. Down here we install Anaconda, which came a pipe in version 3.8. And as you can see in the bottom left hand side Ah, visual studio code pipe entry 0.8 point 3 64 bit base conduct. So that's our pipe interpreter. What that means is, every time you run a file or a pipe and file, it's gonna use piping version 3.8 point tree. Now, you can change this. If you have other versions of piping installed on your system, just click it and you'll see here. If you have three or four or five very since piping installed, they'd be listed here. And you can select which one you want for for our purposes. It's just the one. Where is a 3.8? Click that? There we go. Now I'm gonna close this I d my Shrink it down, I should say, I'm gonna pop back into Hannah conduct. Here we go. So something we're gonna discuss later on is how to create virtual environments. I'm very to environment allow you to set up new environments or sandboxes where you can create programs in an isolated way, which means that anything you do, such as installing a library or a new program will only impact that sandbox for that very to environment. It won't impact your base installation of fightin so you install is always safe and always running. Okay, guys, that if it is lesson we've downloaded on Insult Anaconda on Deep Iten on we've downloaded installed visual studio code and we know boat are working because we were able to run a very simple pipe file. Now, as you move to adolescence to common this class, you'll see that I've been using sublime text editor at the moment I'm upgrading this class or updating the lessons in this class to use the set up that we've just seen on a condom with fightin on visual studio code. So although I'm using sublime in the lessons to come, they will eventually be phased out in favor of this new development environment. So don't worry about seeing sublime. The code was still work in our new set up that we just run through. You'll just be looking at in a different development environment. I hope that makes sense and have any questions. Please don't hesitate to reach out and contact me. Thanks. And I see you in the next lesson. 6. [Old] How to install Python: Hi, everybody. And welcome. In this short lecture, we're gonna briefly discuss help install piping on both windows on Mac OS X. So I'm using a Mac. But so what you do is you go to piping dot org's w W dot piping dog. Here you are here, and then you click downloads. So, as you can see under downloads, it's identified that I'm on a Mac and I can select pipe and 3.5 point two now. Don't worry if that number is higher than what you see here, because it may have moved on by the time you've purchases. Course. Once you click piping, 3.5 point to the download will begin, and you can then install it as an your application on the same works for windows you downloaded and then you install it. It's annular application. So once you have downloaded Pike, you can check if it's installed by doing the following. Go to your term notes. So in Mac, I got to my launchpad and I type in terminal. There it is there, and I can type into my terminal fightin tree. There you go. Now you can see my pipe. Country is installed. I'm working and you can also use this now as a quick editor wouldn't piping So one plus 12 There you go, quick Fightin editor. And it works. Say, mom windows. When you're in your terminal windows, you type in piping on. I think it might be hyphen V for version, So piping tree hyphen V But you might want to check that now when you have downloaded fightin. One of the things that it gives you is the I D l E, or, as I call the Idol interactive development environment. So let's just go into that. So again I go to my lunch part and you can see idle here and the same on Windows Idol will be installed as an application, and you can click on it to run it or search for it and then run it. So here we have it here, Idol and again. This is an interactive development environment, which means it gives you instant feedback. So one plus one to print built in function print let you know exactly what it is. It's a built in Biden function, so that's Platon installed on running away. No, you can use idle for a lot of the programs throughout this course on the way to build an even bigger program is within Idol, say, file. You file and you get a working filed here and you can begin to write your code, save it and run it on the way you run. It is you go file on Ron Module. But we explain that further on in the lecture. Now in the lecture, you'll see me jumping Be true Idol on my code Editor of Choice, which is sublime. Here's my sublime interface here. So you can see I've got actually two programs open from the course now throughout the course will see me jump from sublime into idle on from Idol into sublime on Why is that? Well, sublime is a great text editor. But what it doesn't do is it doesn't allow you to enter user input. So a lot of our programs are gonna ask the user to input such things as their name, their address, the phone number, whatever it might be. You cannot do it out in sublime, but you can do it in idle, so I jump back and forth between sublime and idle. But I do recommend sublime because of the very quick, Very easy installed. Often I D e. That's my set up environment. Thanks for listening, and I'll see you in the next lecture. 7. An introduction to Python variables: Hi, everybody. And welcome back this lecture. We're going to be discussing variables. So what exactly is a variable? Well, a variable is a name that represents or refers to value. So simple example is name equals on whatever your name is in this case, Tony for myself. So now we just created a variable called name and we've said we've assigned that variable the value. Tony, let's change this example by typing the following first name equals Tony. Last name equals you can do the same for your name. You can change the value of a variable at any time. Pipe will always keep track its value. So here's some pointers when you're naming your very both very real names can consist of letters, numbers and underscores. They can start with a letter or an underscore, but not a number. So, for example, the variable name name one is valid, but the name one name is not valid. You cannot start a variable name with a number very well. Names cannot contain spaces, so use underscores two separate words Have I've done these two variable names above and always remember to keep your variable names Sure under script. Now that we know what a variable is and have to assign a value to it. How do we see what we've done? So how do we get our first name and last name variables out on your screen? Well, to do that, we have the following lines. Prince, which puts to your screen enter into variable name first name, um, print last name. And you're very one name. Once you have that done, if you're using sublime like I am in a Mac, you can press control and be that runs your program. And as you can see, down on the bottom left, we have Tony Staunton on the amount of time to talk to you on that program. That's a simple introduction