Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Python for Beginners | Learn Python from Scratch
Python Basics
What is Python? Installation and first execution
Variables, creating and running external srcript, interactive Shell
Comments
Types of Variables
Math Operators
Semicolon and ENTER - assigning multiple values to variables at once
Exercise: adding VAT to products
Assignment operators
Playing with Strings (Slicing, adding and having fun)
Functions and Libraries basics
Importing libraries - basics
ATTENTION - important lecture about common mistake regarding functions
Taking data from user and type conversion (casting)
Conditional statements
Comparison (Relational) Operators
Instruction 'if' why INDENTATION is IMPORTANT in Python | DO NOT SKIP!
EXERCISE: Simple Calculator
Values different than 0
Logical Operators
Loops
Loop while
EXERCISE: Adding numbers taken from the user
Loop for
Instruction break and continue
EXERCISE: Guess the number
Lists
What are Lists? Basic operations on lists
Checking if element is 'in' or 'not in' the list
Operating on lists with Functions
Advanced Types
Tuples - what does immutable mean?
Dictionary
Sets
Operations on sets
Nested types
Processing nested types
Dictionary inside Dictionary, Dictionary inside List - when to choose which?
Extracting (Iterating Through) values from nested dictionaries
EXERCISE: Dynamic dictionary with definitions
Transformations
List Comprehensions
Generator expression
Dictionary Comprehensions
Set Comprehensions
EXERCISE: Finding numbers that are divisible by 7, but are not divisible by 5
Functions Basics
How to create a function?
Multiple parameters in function (passing more arguments)
Returning values from function
Functions - Advanced
Multi module application | How to import your own module?
enum - what it is and why you should use it?
EXERCISE: Sum of all numbers up to the one entered by user | IMPORTANT lecture
Measuring PERFORMANCE of code | How well (fast) some part of code work | time
Function as argument of another function | How to measure performance of func
default arguments
named (keyword) and unnamed (positional) arguments
EXERCISE - checking if value is in container
Variable Length Argument (Multiple Arguments sent and saved in single parameter)
Local vs Global Variables - scope - lifetime of variables
Mutable vs immutable objects
Shallow vs Deep copy of object
Lambda | Anonymous functions - what are they? when should you use them?
Random numbers
Drawing random numbers - creating a program that checks if you hit the monster
Random events - choice vs choices function
shuffle - shuffling cards in 'war' game
EXERCISE: Drawing elements without REPETITION - lottery game - 6 numbers from 49
EXERCISE | GAME | Drawing random chests colours with random rewards
EXERCISE | GAME | Drawing approximate value to a certain value
Working with Files in Python and Exceptions | I/O operations
What is a file? How to create it? Why do we need to CLOSE it? How to save data?
Exceptions, try, finally block
Reading the content of file - read vs readlines, splitting lines, encoding
Opening the file using: with... as...:
seek and tell - changing and reading the position of last operation in file
append - adding text at the end of file
Generator functions
Generator functions - yield keyword
EXERCISE: Generate infinite amount of numbers multiplied by themselves
send method - how to send a value into a generator?
Exceptions, try, finally block
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock