Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python 101: Python for absolute beginners
Rating: 4.4 out of 5(295 ratings)
15,257 students

Python 101: Python for absolute beginners

Learn Python programming even if you've never coded before
Created byKalob Taulien
Last updated 1/2021
English
English [Auto],

What you'll learn

  • Beginner-friendly Python
  • How to start coding even if you've never coded before

Course content

1 section33 lectures2h 48m total length
  • Introduction1:37

    Learn beginner Python basics: data types, data structures, user input, typecasting, loops (for and while), print formatting, and comparison operators, ending with a rock, paper, scissors game.

  • Learning Python 2 vs Python 32:12

    Learn Python 3 as the standard, since Python 2 is deprecated and insecure. The course covers Python 3.9 and newer, reverse compatibility, and installing on Mac, Windows, or Linux.

  • Installing Python (Mac, Linux and Windows)2:27

    Install Python 3.9 on Mac, Linux, and Windows by downloading from python.org and running the installer, then verify your version in the command line using python --version or python3 --version.

  • How to execute Python code4:58

    Learn to run Python code from the terminal on Windows, Linux, and macOS, check the version, and create a Hello World script that prints Hello World.

  • Basic arithmetic6:11

    Explore basic arithmetic in Python, mastering addition, subtraction, division, multiplication, exponents, and modulus (remainder). Learn how to run Python in a terminal or file, and recognize float versus integer results.

  • Introduction to variables in Python4:07

    Explore how variables in Python 101 are memory-allocated, named values like course = 'Python 101', and how print displays the variable's value, with Python's indentation and no semicolons.

  • Formatting code in Python6:31

    Explore how Python uses indentation instead of curly braces, using colons to begin indented blocks, and how to manage empty blocks with pass while avoiding syntax errors.

  • Code comments3:45

    Learn how to use code comments in Python to document intent, explain complexity, aid teammates, and capture to-dos, while keeping comments non-executed by the interpreter.

  • Introduction to Python data types4:35

    Explore Python data types, including strings, integers, floats, lists, dictionaries, tuples, sets, booleans, and none, with examples. The course will cover each type in upcoming lessons.

  • Number data types4:07

    Explore number data types in Python by multiplying integers and floats, contrast with strings, and learn how underscores improve readability for large literals while recreating a Batman joke example.

  • String data types3:23

    Explore string data types in Python: define strings with single, double, or triple quotes for multi-line text, and use dot methods like upper and lower to transform them.

  • List data types5:54

    Learn how Python lists store multiple values in a single variable, including nested lists, and how to modify them with append, remove, and pop while looping to print items.

  • Dictionary data types6:12

    Explore dictionaries as flexible Python data structures of key-value pairs, using curly braces and string keys, similar to JavaScript objects and JSON.

  • Tuple data types6:16

    Learn how tuples in Python are immutable iterables and how to loop through them with for loops. They differ from lists, offer memory performance, and are best for fixed data.

  • Set data types4:51

    Explore sets in Python by contrasting them with lists and dictionaries; sets store unique items with curly braces and no key-value pairs. Learn adding and removing items with set methods.

  • Boolean data types2:50

    Explore booleans in Python, understand true or false values (one or zero), and see how indentation affects if statements and basic conditionals.

  • None data types2:36

    Explore the none data type, which represents nothing in python, and see how to initialize variables, test if none with is none, and prepare for conditional statements and indexing.

  • Indexing and slicing in Python7:12

    Explore indexing and slicing of iterables like lists, strings, and booleans. Learn zero-based indices, subscripts, end-to-end slices using colon, and non-subscriptable errors for booleans.

  • Accepting user input3:15

    Learn how to accept user input in Python with the input function, know that input returns a string, and cast values to numbers for calculations.

  • Type casting5:31

    Explore type casting in Python by converting user input and various data types, such as strings to integers, lists to sets or tuples, and checking the resulting types.

  • Print formatting4:04

    Learn to format prints in Python 101 using the format method and f-strings, injecting a name variable into a string and comparing with the old percent formatting.

  • Comparison operators15:06

    Learn to apply comparison operators in Python, including is equal to, is not equal to, and other relational operators, guiding code with if, elif, and else.

  • Comparison shortcuts3:11

    Master Python booleans in if statements by recognizing that non-empty values are true and empty ones are false, with examples including None, strings, lists, sets, and tuples.

  • Multiple comparison operators4:34

    Explore Python's multiple comparison operators, using and and or to combine conditions such as age >= 18 and name == Caleb, and merging nested if statements into concise expressions.

  • For loops7:08

    Master for loops to iterate over any iterable, from lists and tuples to sets and strings. Explore dictionaries with items() and f-strings to print key-value pairs.

  • While loops2:41

    Explore while loops in Python, contrast them with for loops, and learn to control execution with a condition, increment a counter, and print numbers until the condition becomes false.

  • Break and continue6:30

    Learn to use break and continue in Python with for and while loops, skip iterations and exit loops, and see modulus-based printing in practical examples.

  • Functions12:35

    Explore the basics of Python functions, including defining with def, passing named and default arguments, handling parameters, return values, and practical examples like a simple exponent calculator.

  • Scope5:20

    Explore Python scope: understand how variables inside a function remain local, why name errors occur, and how parameters and closures affect access with practical examples.

  • How to create a local Python server3:39

    Learn to run a local Python http server to serve static html on localhost:8000, preview files like index.html, understand its basic limitations for get/post, and expose with ngrok.

  • Importing packages and using them2:03

    Learn to import the random package in Python and use random.choice on a list to produce random selections, with examples like rock, paper, scissors for your final project.

  • Your project11:34

    Build a rock, paper, scissors game against the computer using the Python basics: random choices, a while loop, input, print formatting, and break and continue.

  • Summary1:42

    Celebrate completing Python 101 and highlight that this covers basic Python. Explore more courses like Python for everybody and join a free, supportive coding community.

Requirements

  • A willingness to learn how to code
  • Internet to streamt he videos
  • A laptop or desktop to code (sorry, you can't code on your phone!)

Description

Hi there,

Welcome to Python 101 - your first step to learning how to program using Python.

Python is in the top 3 most popular programming languages in the world. BIt's easy to learn, easy to read, and easy to write, plus Python is incredibly powerful.

Some of the things you can create with Python are:

  • Websites

  • Automation tools for your home

  • APIs

  • Artificial intelligence

  • Machine learning

  • Mathematical algorithms

  • Scraping tools

  • And more...

Some of the most popular companies in the world use and support Python, too. Such as:

  • Google who owns YouTube (made with Python)

  • Facebook who owns Instagram (made with Python)

  • Dropbox (made with Python)

  • You get the point.. there's a lot of them!

And in 2021 you will definitely want to know Python as it becomes more powerful and more popular. As it grows, so will job demand for Python programmers. The nice thing is: Python is easy to learn and quick to get a hang of.

But why use Python instead of other languages like Java?

Python is consistently the top choice for new programmers - not because it's beginner-friendly, but because it's easy to read and write. You don't have to learn all sorts of new rules or write crazy letters beside each other. Python is made in such a way you can literally just read through your code like it's a book. No other language has that kind of power. Plus it's fast and scales well when there's a lot of use, unlike Node.js.

How much effort will this course take?

Barely any! I've taught thousands of people how to program using Python and I've designed a perfect beginner course. I expect this course to take you about 7 hours in total, that's including all the small tasks at the end of almost every lesson and the final project.

Why Kalob as your instructor?

Hello, I'm Kalob, your instructor through Python 101. I'm a seasoned Python programmer, senior web developer, and have taught tens of thousands of people how to code using Python. I have helped people learn to make websites with absolutely no prior experience and then helped them land their first job at companies like Google, AWS, Facebook, Netflix, and more.

I write Python every day, even for my hobby projects. It's my #1 choice for a programming language and I'm passionate about it. And once you start learning Python, I'm confident you'll be passionate about it as well.

Can I take this class if I'm on Windows, macOS, or Linux?

Yes, of course, you can! There are only a few small cases where you would do things differently on Windows than on macOS, and I show you all the commands for every operating system in this course.

Heads up! macOS and Linux are very similar operating systems behind the scenes. So we only need to cover one of them to learn both. Windows is the oddball, but it's still supported in this course.

Requirements:

You will need a few things to get started in this course. First, a text editor like VS Code. And then you'll need to download and install Python.

  • Download VS Code for free

  • Download Python for free

Thank you for reading through this course description. I hope you choose Python as your programming language — if you do, I promise you won't regret it.

Happy coding!

Who this course is for:

  • People who want to learn how to code
  • People who want to get into fintech
  • People who want to get into data science
  • People who want to get into machine learning
  • People who want to code things for fun (or professionally!)