
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Motivational introduction to this Python course.
After this lecture you will know what is Python, how to download it and how to execute Python IDLE.
What are variables? How to create them? How to assign a value to variable? What does it mean to change the state of shell? How to create and run scripts?
This lecture discusses the use of variables, external scripts, and the interactive shell in Python programming. It covers the creation and use of variables to store and access data, the process of creating and running external scripts in Python, and the use of the "input()" function and mathematical operators to perform calculations with variables in Python. The "print()" function is also discussed as a way to output the result of calculations or the value of variables in Python.
Why and how to create comments in Python?
This lecture is about comments in Python. We will learn how to create comments using the hash sign and how to create multi-line comments using the triple quote. We will also learn how to use single quotes for comments. We will look at an example of a program that adds two variables together
We learn the types of variables and we learn how to properly name variables.
This lecture is about Types of Variables. It will cover the basics of variables and how to name them for better
readability. We will discuss the different types of variables such as integers, floats, strings, booleans, and how to use them. We will also discuss the importance of case sensitivity and self-descriptive variable names.
We learn basic math operators in Python.
We exercise what we have learnt so far about Python by creating a simple program that counts the gross price of the product basing on the provided VAT and net price of the product.
What does semicolon/ENTER means in Python? How to assign multiple values at once?
This lecture will cover how to assign multiple values to variables in one line using the semicolon and ENTER key. We will learn how to use the semicolon to tell the interpreter that the instruction has ended and how to use the comma to assign multiple values to variables at once. We will also learn how to assign the same value to multiple variables in one line. By the end of the lecture, you will have a better understanding of how to use the semicolon and ENTER key to assign multiple values to variables in Python.
You will learn assignment operators that will allow assigning values in Python in a cleaner way.
It covers how to use the equals sign to increase the value of a variable, as well as how to use the plus equals sign to do the same thing in a shorter way. It also covers how to use other operators such as minus and multiply to change the value of a variable. At the end of the lecture, the instructor provides an exercise for the students to practice using the assignment operators.
You will learn how to ADD strings to each other and EXTRACT sliced part of the string.
This lecture is about playing with strings in Python. We will learn how to create strings, add them together, and create long strings. We will also learn how to slice strings and access individual elements. We will also learn how to use backslashes and comments to create strings. Finally, we will learn how to use strings to check if something starts with a certain string.
Most important thing to remember from lectures in this section
Must to known shortcuts by every programmer. Do not forget to exercise them. You will save lots of time using them while writing programs in Python
How to import liblaries? How to remember all these things? What are functions? How to invoke a function?
Commonly wrongly interpreted aspect of invoking function - because of that lecture you will save lots of time while debugging Python code. Please do not skip this lecture!
You will learn how to download (take) data from user of your program, assign that data to variables in your script and convert the data into proper type so your program doesn't crash. You will learn what does it mean to cast variable from one type to another.
Create a program that asks the user for their name, age, and favorite color.
What are comparison operators, why are they created and how do they work?
You will learn:
It's time to practise Python by writing a simple Calculator that can add, subtract, divide and multiply numbers.
Count absolute value of a provided number.
Values that are different from 0 are equal to 'true' in Python.
What are logical operators 'and', 'or', 'not' and how to use them?
What are loops? What is loop while? Why should you use loops? How to use loops? All of that answered in this lecture!
Exercise: Adding numbers taken from the user using loop while.
What is loop for? What is list? How does loop for differs from loop while?
break vs continue
How does break and continue instruction work on practical example?
Time to practise your knowledge by writing a program asks the user for the number for guessing purpose.
How to check if the element is included or not included in the list.
How to give access to only people from provided list?
#len() - length
#.append - adding at the end SINGLLE element
#.extend - extending list by another list
#.insert(index, what) - put in
#.index(what) - return index of 'what'
#sort(reverse=False) - sort ascending
#max()
#min()
#.count - how many occurrences (how many times it shows up)
#.pop - pop last element (remove)
#.remove - remove first occurrence (first time it shows up)
#.clear - clear entire list
#.reverse - change the order
What is a tuple?
What is a difference between a tuple and a list?
When you should use tuple and when you should use list?
What is a dictionary?
How to add/remove/update items inside a dictionary?
What are keys/values?
What are sets? How to create them? What are they useful for?
Union, difference, subset, xor and conjuction. How to use them, and when to use them?
What is nested type? What problem do they solve? How to use them? How to access elements inside Nested type?
How to print out every element from the nested type?
When to choose dictionary inside a dictionary over list inside dictionary? What is the difference?
How to extract (Iterate through) values from nested dictionaries?
Write a program that will allow the user to:
1) Add new definitions
2) Search existing definitions
3) Delete the definition that he has chosen
What is a list comprehension? What problem do they solve? Why and when you should use list comprehension?
What are generator expressions? When you should use list comprehension and when you should choose generator expressions? What are benefits of using generator expressions?
What is a dictionary comprehension? How and when to use it?
How does set comprehension work? How to use set comprehension?
Find numbers from 2 to 470, that are:
- divisible by 7, but are not divisible by 5
What will you use?
1) generator expression
2) list comprehension
3) set comprehension
4) dictionary comprehension
Think for a second and make notes:
"is the answer to above question always the same?"
What are functions? How to create a function? Why should we use functions?
Function - is a block of code that you can access any time to get the result you want.
So it is a code written by somebody, that we want to invoke, by invoke we mean 'start a function', 'execute function' or call upon a function. Function has a role (a function) - it solves the problem that is inside its name definition.
So it is a solution to solve the problem.
Thanks to functions:
1) We can change the code in one place and the change will affect code in every place
2) The code can be reused as many times as we want, without having to write it again and again
3) It makes your code cleaner
Passing more than one argument. Counting the area of rectangle
return as the name suggests returns to the place where the function was invoked.
Where the function is invoked is decided by you.
If you write in your code:
power(2, 3);
then the place where you write it is the place where the function was invoked.
After you invoke a function computer jumps to the declaration of function. He executes every instruction inside the function and then returns to the place where the function was invoked with the value that if put after return.
In the case you showed 'b'.
-----------------------------
Invoking means jumping/executing the function. Instead of word 'invoking' you can say "call upon a function", "start a function", or "execute a function".
What 'return' and 'invoke' means?
Create a menu for the user from which he can choose to count the area of figures:
square
rectangle
triangle
circle
trapeze
Remember to use functions.
Improve actual code with the new knowledge regarding functions.
How to create a multi module application? How to create your own module and import it inside another module?
In this lecture I will show you what 'enum' in Python is. Also you will finally understand WHY you should use it.
Write program, that will count the sum of all numbers from 1 to the number that was entered by the user.
For 5:
1+2+3+4+5
the result is gonna be:
15
In this lecture you will learn how to measure performance (how well or fast) some part of code is. It will help you decide what you should do in some cases.
You will learn how to use function as argument for another function. This will allow you for example to measure the performance of function.
On practical example I will show you how to use, when to use and what are default arguments.
In this lecture you will learn the difference between keyword and positional arguments.
EXERCISE TIME :-)
Write a function that will check if the container contains
searched value.
If the value is found return True
If the value is not found return False
CHECK PERFORMANCE of your function on set and list containing
over 1000 values.
How to send unkown amount of arguments and save them in a single parameter?
In this lecture you will learn about variable length argument.
What is local and global variables? What is the difference between local and global variable?
Mutable vs immutable objects
What are objects?
How they differ from variables?
What is the difference between mutable and immutable object?
What is the difference between shallow and deep copy of object? When should you use deep and when should you use shallow copy?
What are and when should you use anonymous/lambda functions?
EXERCISE where we will learn what is 'any' function and we will use it on practical example.
Use the any() function to determine if a person has a required set of skills.
Learn how to use the enumerate function to iterate over a list and also get the index of each item.
Save your precious time by buying this Python course!
If you want to learn a programming language like Python, which can be used in almost every area of software development and helps you earn good money, you’re in the right place.
You will learn how to program in Python in a fast and easy way - even if you’ve never programmed before.
This Python course is presented by a young instructor who shares his knowledge clearly and simply, making Python programming easy to understand for everyone.
The course is designed for complete beginners - those who have never written Python code or who think programming is complicated.
Python will prove you wrong. After this course, you’ll see that Python is one of the easiest languages to learn.
Why Python?
Python is:
easy to learn and read
fast and efficient
universal – with tons of powerful libraries
Professional developers use Python even if their main language is Java, C++, or JavaScript. That’s because Python makes solving complex problems easier.
Python is used by companies like:
Google (YouTube)
Dropbox
Yahoo
NASA
IBM
Mozilla
Learning Python gives you real-world opportunities in a wide range of industries.
After my Python course, you will know:
how to import and use Python libraries
how to write and call functions in Python
how arithmetic, logical, and relational operators work in Python
how to work with strings using Python’s built-in methods
how to write if-statements and conditional logic in Python
what lists, tuples, dictionaries, and sets are in Python and how to use them
how to use list comprehensions and similar Pythonic expressions
how loops work in Python
how to read and write files in Python
how to generate random events in a Python minigame
how to work with JSON data using Python, including calling APIs
how to install Python packages from PyPi
how to use Visual Studio Code for Python development
how to write object-oriented code in Python
That's not all!
It’s packed with hands-on Python exercises to build your confidence.
I believe everyone can learn Python programming if they’re taught the right way.
Including you.
That’s why I’ll explain every Python concept with real-life context, so you don’t just memorize-you actually understand what you’re coding.
Join over 350,000 students who have already trusted my teaching.
If you’re not satisfied with the course, you can request a full refund within 30 days.
If you have any questions regarding the topics covered in this Python course, please feel free to ask. I'm always happy to help those who want to learn!
Check out the free Python lessons first to see the quality of the course.
JOIN NOW and become a Python expert!