Giter Site home page Giter Site logo

python-course's Introduction

Learn Python in a Fun Way with Turtle Graphics and Fractals

Binder

Welcome to an Introduction to Python with Turtle Graphics and Fractals! In this course, we will introduce you to main concepts of Computer Programming using one of the most popular programming languages today - Python. You will also learn to make your computer draw nice images like the one below:

Computer programming is a way to tell a computer how to do things. For example, you can ask computer to calculate the product of all numbers from 1 to 10. To do that, you need to express your instructions in a clear way, and in a language understandable to a computer. We will learn the language called Python, but there are also many other popular languages, such as C#, C++ or JavaScript.

Many of the samples in this course will be using so-called Turtle graphics. The main idea is that we can give commands to a simple "virtual robot" called turtle, asking it to move forward, or turn left. By doing so, we can draw different things and immediately see the results of our commands. It is a fun way to learn programming because you will produce images and not just work with numbers. But don't worry, we will work with numbers as well!

In this course we will use a technology called Jupyter Notebooks. Notebooks are documents that combine normal text with some computer code that you can execute. While you can read notebooks here by following the links, to execute them you need to set up a programming environment. There are several ways you can execute notebooks and follow this course:

  • Install Python, pip and Jupyter locally on your computer.

Your computer might already have Python installed. To test this, open a command or terminal window and run the following commands.

python3 --version
pip3 --version

If Python and pip are installed a version number will be displayed, such as 3.8.10. Otherwise, an error message is displayed. You can install Python and pip as needed:

Visual Studio Code

The instructions for this workshop assume you are using Visual Studio Code, an open source code editor. You will also need the Jupyter extension, which will provide additional functionality when writing Python.

  • Use GitHub Codespaces. Currently you need to apply for early access to this technology and there may be costs involved in using it, but it works well with Python.
  • Use Binder by clicking on the button at the top of this page. Keep in mind that when using Binder all changes you make to notebooks are not saved by default, and the environment tends to expire after some time - thus it is very easy to lose your work.

Content of the Course

Unit Link
Introduction to Programming Binder
Functions Binder
Conditional Operators Binder
Loops Binder
Nested Loops Binder
While Loop Binder
Recursion and Beauty of Programming Binder

Intro Video

python-course's People

Contributors

jlooper avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zero-overhead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.