Python Basics - free course from Hexlet, training 57 hours, Date: November 30, 2023.
Miscellaneous / / December 03, 2023
You will learn the basics of Python programming, becoming familiar with syntax, conditions and loops, data types and libraries. This course will help you understand how function declarations and built-in methods work in Python. As a result, you will begin to write simple programs, master naming standards, and also be able to search for and analyze errors in the code.
Throughout the course, we will put theory into practice so that you get used to the syntax and can immerse yourself in the language. The knowledge from this course will help you gain a basic understanding of Python, its principles and features. This is a basic course that is suitable for both beginners in programming and those learning a new language.
Introduction
Get to know the course
Hello, World!
Write your first program
Instructions
Learn the basics of building programs in Python
Arithmetic operations
Let's translate arithmetic operations into a programming language
Design errors (syntax and linter)
Study types of errors and ways to solve them
Strings
Learn to work with strings
Variables
Learn to store information and reuse existing data
Expressions in definitions
Learn to simplify code, use variables
Naming
Let's learn how to name variables correctly
Interpolation
Learn another way to work with strings in Python
Extracting characters from a string
Learn to get values from strings
Line slices
Learn to extract substrings
Data types
Let's multiply a number by a string, get acquainted with data types and convert them
Immutability and primitive types
Finding out if Python can change strings or numbers
Functions and their calls
Learn to use ready-made functions
Function signature
Learn how a function takes and returns values
Function call - expression
Learn to use the results of functions
Determinism
Study some properties of functions and features of their operation
Standard Library
Let's get acquainted with the standard library
Properties and Methods
Learn to use Python's built-in data attributes.
Method chain
Learn to use Python's built-in data attributes.
Defining Functions
Learn to create functions
Returning values
Learn to use the result of a function
Function Parameters
Learn to pass data to a function
Optional Function Parameters
Setting default values
Named Arguments
Get to know another type of argument
Type Annotations
Let's find out what type annotations are needed for and how to specify them
Environment
Explore what values are available to functions
Logics
Learn what a logical type is and how to use logical operations
Logical operators
Learning to write compound conditions
Result of logical operations
Deeper about logical operations
Conditionals
We control the behavior of the program depending on different conditions
match operator
Exploring a special version of if for multiple conditions
while loop
Learn to write programs to perform repetitive actions
Data Aggregation
Learning to apply cycles in practice
Line traversal
Learning to traverse and form strings in loops
Conditions inside the loop body
Learn to control the behavior of a program in a loop
for loop
Let's learn another loop in Python
Debugging
Learn to find errors in code
Modules
Learn how Python works with code split into multiple files
Deeper modules
Get acquainted with some special cases of working with modules, which, however, can often be found in the documentation and code examples
Packages
Learn to combine individual modules into groups - the so-called. packages - and work with such groups
random module
Practice using modules using the example of the random module, which is included in the standard Python library and is responsible for generating random numbers
Tuples
Get to know the first composite type - a type whose values can consist of several values of other types
History of the development of the Python language
Learn how Python became what it is today
Additional materials
Articles and videos curated by the Hexlet team. Will help you dive deeper into the topic of the course