Introduction to Python
Learning Path ⋅ Skills: Core Python 3, Python Syntax
Learn fundamental concepts for Python beginners that will help you get started on your journey to learn Python. These tutorials focus on the absolutely essential things you need to know about Python.
What You’ll Learn:
- Installing a Python environment
- The basics of the Python language
Introduction to Python
Learning Path ⋅ 28 Resources
Why Choose Python 3
An overview of the Python programming language, including a brief history of the development of Python and reasons why you might select Python as your language of choice.
Installing Python 3
In this Python installation guide you'll see step by step how to get a working Python 3 distribution set up on Windows, macOS, Linux, iOS, and Android.
Interacting with Python
Now that you have a working Python setup, you’ll see how to actually execute Python code and run Python programs.
11 Beginner Tips for Learning Python
In this course, you'll see several learning strategies and tips that will help you jumpstart your journey towards becoming a rockstar Python programmer!
Basic Python Data Types
Learn the basic data types that are built into Python, like numbers, strings, and Booleans. You'll also get an overview of Python's built-in functions.
Basic Data Types Quiz
Test your understanding of the basic data types that are built into Python, like numbers, strings, and Booleans.
Variables in Python
Learn how every item of data in a Python program can be described by the abstract term "object," and how to manipulate objects using symbolic names called "variables."
Python Variables Quiz
Test your understanding of Python variables and object references.
Free Email Class
"Python Tricks" Email Series
Get a short & sweet Python Trick delivered to your inbox every couple of days.
Operators and Expressions in Python
See how calculations can be performed on objects in Python. By the end of this tutorial, you will be able to create complex expressions by combining Python objects and operators.
Python Operators and Expressions Quiz
Test your understanding of Python operators and expressions.
Strings and Character Data in Python
How to use Python's rich set of operators, functions, and methods for working with strings.
Cover the basic characteristics of dictionaries and learn how to access and manage dictionary data. Get a good sense of when a dictionary is the appropriate data type to use and know how to use it.
How to work effectively with Python's set data type. You'll see how to define set objects in Python and discover the operations that they support.
Python Program Lexical Structure
Dig deeper into Python's lexical structure and start arranging code into more complex groupings.
Python Program Structure Quiz
Test your understanding of the lexical structure of Python programs.
In this step-by-step tutorial you'll learn how to work with conditional statements in Python. Master if-statements and see how to write complex decision making code in your programs.
Conditional Statements Quiz
Test your understanding of Python conditional statements.
In this tutorial, you'll learn about indefinite iteration using the Python "while" loop.
Basic Input, Output, and String Formatting
Learn how to take user input from the keyboard and how to display output to the console.
The Python print() Function: Go Beyond the Basics
Learn about the print() function in Python and discover some of its lesser-known features. Avoid common mistakes, take your "hello world" to the next level, and know when to use a better alternative.
A Guide to the Newer Python String Format Techniques
Learn about Python's string format method and the formatted string literal, or f-string.
Defining Your Own Python Function
Learn how to define and call your own Python functions. You'll also learn about passing data to your function, and returning data from your function back to its calling environment.
The Python return Statement: Usage and Best Practices
Learn how to use the Python return statement when writing functions. Use best practices in order to write readable, robust, and maintainable functions in Python.
Regular Expressions: Regexes in Python (Part 1)
Learn how to perform more complex string pattern matching using regular expressions, or regexes, in Python.
Regular Expressions: Regexes in Python (Part 2)
Explore more regex tools and techniques that are available in Python.
Namespaces and Scope in Python
Learn when namespaces are created, how they are implemented, and how they define variable scope.
Reading and Writing Files in Python
Learn about reading and writing files in Python. You'll cover everything from what a file is made up of to which libraries can help you along that way.
Getting the Most Out of a Python Traceback
Learn how to read and understand the information you can get from a Python stack traceback. You'll walk through several examples and see some of the most common tracebacks in Python.
A Beginner's Guide to Pip
Learn how to use pip, the standard package manager for Python, so that you can install and manage additional packages that are not part of the Python standard library.
Continue Your Python Journey With "Python Basics"
Your complete Python curriculum—with exercises, interactive quizzes, and sample projects.