This course is designed to teach you the foundations in order to write simple programs in Python using the most common structures. No previous exposure to programming is needed. By the end of this course, you'll understand the benefits of programming in IT roles; be able to write simple programs using Python; figure out how the building blocks of programming fit together; and combine all of this knowledge to solve a complex programming problem.
We'll start off by diving into the basics of writing a computer program. Along the way, you’ll get hands-on experience with programming concepts through interactive exercises and real-world examples. You’ll quickly start to see how computers can perform a multitude of tasks — you just have to write code that tells them what to do.

レビュー

EZ

A comprehensive course on Python, that lets you explore step by step. This is the best structured python course I have seen in a while. Thanks a lot to the instructor and the course content writer!

TP

May 01, 2020

Filled StarFilled StarFilled StarFilled StarFilled Star

the course was really put together well. and it was a fun-filled project with days of debugging errors and writing codes which i thought was an impossible task for me at the start of the course

レッスンから

Object Oriented Programming (Optional)

In this module, you'll be introduced to the concept of object-oriented programming! You'll learn how to build your own classes with unique attributes and methods. You'll get a chance to write documentation for your classes and methods using docstrings. You'll learn all about object instances and object inheritance, as well as how to import and use Python modules to make use of powerful classes and methods. To round things out, you'll also be introduced to Jupyter notebooks, which we'll use to write and execute more complex code.

講師

Google

字幕

In all our quizzes so far, we've been working with code blocks. Code blocks are a great tool for writing small snippets of code, but now we're tackling more complex problems so we need a more powerful tool. We're going to start using a new tool called Jupyter Notebooks, kicking off with the next quiz. A Jupyter Notebook is a special kind of document that can contain pieces of programming code. We can execute these pieces of code inside the notebooks one piece at a time, and the notebooks can also contain other things like text, images, interactive widgets, and a whole lot more. These extra elements allow us to tell an interactive story with our code exercises. Like Code Blocks, Jupyter Notebooks lets us edit and run our code in the web browser. The difference is that we can add explanations and between the code, and also the pieces of code are related to each other. Jupyter Notebooks are an open-source technology that you can use outside this platform, so if you're interested, you could even run it locally on your computer. Without further ado, let's check out how a Jupyter Notebook works and what you can do with it. We'll first click on Open Notebook and wait until the notebook loads. Now that it's loaded, you can see some explanatory text and a bit of code. We can execute the code by clicking the run button in the toolbar, or we can also run it by pressing Shift-Enter on our keyboard. Now that we've run our code, you can see there's a number here next to the first cell. This number tells us that the code has been executed. If a cell generates any output, it'll appear at the end of the cell. Let's try executing the next cell and see if we get an output. This cell includes some print calls, so after executing it, the interpreter printed the values. The comments in the code tell us that these values should be nine and one, but the print statement say that they're zero that's because we need to edit the code in the first cell to make it do what it needs to do. Let's edit the go-to function. Once we've made the change, we need to re-execute the cell so that the elevator class is modified, and an elevator variable is created with the new elevator class. Now we can re-execute the second cell. Okay, now we get 10 and negative one instead of zero. But that's still not what our comment say we should get. We still got work to do on the code to make it do what it's supposed to do. We don't want to get ahead of ourselves, though. So let's leave it at that. Once you're working through the exercises yourself in your Jupyter Notebook, remember you have to re-execute the class definition whenever you modify it. If you forget, the elevator variable won't change. If at any point you're stuck or something doesn't work as expected, there's more help in the next reading. Good luck.