Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
A Turtle Tale • Learn Python in a Visual Way
Rating: 4.8 out of 5(28 ratings)
2,121 students

A Turtle Tale • Learn Python in a Visual Way

A Python beginners' course with a difference. It's entirely visual.
Last updated 4/2024
English

What you'll learn

  • Understand the fundamentals of writing a Python computer program
  • Understand the mindset needed for communicating with a computer through a program
  • Learn key foundational topics, including loops, defining functions, conditional statements
  • Gain confidence to write programs independently

Course content

6 sections85 lectures10h 26m total length
  • Welcome to the coding • What's different in this course?3:37

    Discover why coding is fun and suitable for beginners, with an engaging, no-edit teaching style that explains why things work and teaches Python quickly.

  • About a Turtle Tale3:37

    Master Python fundamentals through a visual, turtle module-based approach that uses graphics as a learning tool, with the option to study standalone or alongside the Python Tail.

  • Installing Python and Other Tools8:00

    Installing the Software

    If you already have a setup to code in Python that you're happy with, keep it. Don't let anyone tell you "You should use this editor and this configuration to code". Find what you're comfortable with.

    But if you're new to coding, then you can follow these steps to install Python and an editor. I'll use PyCharm in my videos, so you can use the same software if you don't already have a preferred editor.


    Install Python

    First, you'll need to install Python, the language.

    • Go to the main Python website (link in resources)

    • Hover on the Downloads tab and click the button to install Python. This link will download the latest version, which is the one you want to use.

    • Once the download is complete, run the installer. You can choose all the default options when you're asked any question during installation.

    You don't need to run anything. As long as Python is installed on your computer, you can move on to the next download and installation.


    Install PyCharm Community Edition

    The language is not enough. You need an editor to write code and manage your projects. Although Python comes with a basic editor, I'll recommend you use one of the standard IDEs (Integrated Development Environment)—that's a fancy word for an all-in-one software for your coding.

    • Go to the PyCharm download page (link in resources)

    • There are two versions of PyCharm on this page. Don't choose the more prominent one, the Professional Edition, since this required a paid license. Instead, scroll down to get PyCharm Community Edition, which is free and more than enough for your current.

    • Once the download is complete, run the installer. You can again choose all the default options when you're asked any question during installation.

    Once you've installed PyCharm, launch it, again choosing the default options during any set up steps presented to you.

    • Create a New Project. A project is a folder with all the files that belong together. I recommend you create a single project for all the lessons we'll work on in this course. Don't create a project for each lesson!

    • You'll be asked to choose your Interpreter. PyCharm wants to know how you want Python set up. Go with the defaults again. This will create something called a Virtual Environment (don't worry about what this is for now) using the version of Python you have just installed. In future, you may have more than one version of Python installed on your computer and you can use different ones for different projects.

    • And you're in! Now, From the File menu, choose New... (not the menu item that says New Project, since you're already created a project, but the one the simply says New...)

      • From the window that comes up, choose Python File (not the option that just says File)

      • If you don't see any options in the little window that pops up on your screen, make sure your project/folder is selected in the Project sidebar on the left (you may need to open the sidebar first) and then try again.

      • Name your file anything you want, and you're ready to code

  • First Words and `turtle`12:47

    Launch a Python project in PyCharm, import the turtle module, and create a turtle named Fred to draw graphics, while learning that coding is stepwise communication.

  • Finding Out What A Turtle Can Do8:22

    Discover how Python creates a turtle object named Fred from the turtle module, call forward and left with distance, note that command order matters, and keep window open with turtle.done.

  • Different Types of Objects in a Python Program7:04

    Explore how turtle objects, strings, and integers become Python objects, and learn how quotes, variables, and simple commands like right and forward create visible output.

  • Introducing Fred and Mary8:51

    Create two named turtles, Fred and Mary, using the turtle module, set their shapes and colors, and program them to move away from each other continuously forever.

  • Fred and Mary Go On and On • `while` Loop8:49

    Illustrate how to use a while true loop in Python to move Fred and Mary step by step, forever, with indentation and the dry principle guiding repetition.

  • Where's Fred? • Using `print()`8:04

    Explore how a while loop repeats a block of code with indentation and a colon, and learn to print the turtle's x score using a value variable with parentheses.

  • Asking The Program To Make a Decision • `if` statements6:03

    Use if statements in Python to let a program decide what to do, checking Fred's x position and stopping the loop at 100, with indentation and printing to show results.

  • Different Types of Objects (Again) • Data Types5:17

    Explore how to use a Python interactive console to experiment with variables and data types. Learn about int, float, string (str), and bool, and why imports like turtle are necessary.

  • Equals Equals Is Not The Same As Equals6:11

    Explore Python variable assignment, the equals equals operator, and booleans; learn how interactive output differs from scripts and apply if statements with comparisons like greater than or equal to.

  • Stopping Fred and Mary • Stopping The `while` Loop5:03

    Explore variables as data labels and booleans like true. Use a while loop controlled by carry on to stop Fred and Mary when Fred reaches 100, then print the end.

  • Stopping When Mary Reaches The End Too8:05

    Control flow in Python using if/else inside a while loop to decide actions and print outcomes, then end animation when either Fred reaches 100 or Mary reaches -100 using or.

  • Your First Bug9:56

    Import turtle, race Fred and Mary in a while loop with a boolean flag, replace hard coded numbers with variables, and add random speeds to expose a stop condition bug.

  • Squashing Your First Bug8:14

    Identify and fix a bug in the turtle race by using a greater than or equal to finish line check, ensuring the loop stops when a turtle crosses the finish.

  • Reviewing Fred and Mary5:30

    Review the Fred and Mary project, tidy code with comments, and explore importing the turtle and random modules, using random.randint, controlling the while loop, and if statements.

  • Extra: Other ways of stopping the `while` loop7:22

    Learn three ways to stop a Python while loop: boolean conditions, an infinite loop with break, and end conditions from relational expressions, with booleans and print statements shown.

  • Extra: Changing The Font in `fred.write()`4:35

    Discover how to use the turtle module to write on screen with adjustable font, size, style, and color, while following file naming rules to avoid module name clashes.

  • Exercises0:13

Requirements

  • No prior knowledge of programming is required.

Description

This course introduces the fundamentals of programming through graphics-based projects using Python's built-in `turtle` module. This is a fun way of learning the basics and you'll also be able to apply your newly-acquired knowledge to other non-graphics programs.

A Turtle Tale starts from the basics and introduces all the key topics that are central to programming and Python. All the projects are graphics-based, including creating animations and some games, too. However, the key Python topics you'll learn are universal.

I've been teaching Python for a decade and I believe in clear communication and in making sure students understand why things happen the way they do, and not just how to get things done. My teaching style is different. Try out the first few lessons and if it's your style, then we'll be together for a many hours.

No prior experience of Python or coding is required. This is a beginner's course.

Or perhaps you're not a beginner, but you've done a bit of coding in the past but didn't carry on. It wasn't you, it's likely you didn't find the resources that speak directly to you. I can't promise my style is what you're looking for, but you'll know after the first few lessons!

In this course you'll learn:

  • How to apply the key principles and mindset for communicating with a computer through programming

  • How to repeat blocks of code using `for` loops and `while` loops

  • How to store data using variables and using various data types

  • How to define your own functions to re-use code

  • How to use data structures including lists, dictionaries, and tuples

  • How to apply best practices when coding

This course will teach you all the fundamental tools, of course, but more importantly, it will teach you the right mindset for programming. This is just as important as learning all the programming techniques—if not more important.

Who this course is for:

  • Beginners starting to learn to code using Python or those who have tried to learn in the past but gave up!