Before running the examples, make sure you have Python3 installed on your system. You can check if Python is installed by running the following command in your terminal or command prompt:
python3 --version
Run the example you want using the following command:
python3 example_name.py
For example, to run an example called basic_lists.py, use:
python3 basic_lists.py
Hello World in Python:
print('Hello World!')
Basic examples
# | Content | Code |
---|---|---|
01 |
Variables and data types | view |
02 |
Functions | view |
03 |
Numbers and Operators | view |
04 |
Arrays and Iterators | view |
05 |
Conditional Code | view |
06 |
Objects | view |
07 |
User data entry | view |
POO
# | Content | Code |
---|---|---|
01 |
Classes and Methods | view |
02 |
Abstraction and Constructors | view |
03 |
Encapsulation | view |
04 |
Getters and Setters | view |
05 |
Inheritance | view |
06 |
Polymorphism | view |
File Management
# | Content | Code |
---|---|---|
01 |
Create and read files | view |
# | Content | Level | Code |
---|---|---|---|
01 |
Challenge 1 - CRUD | Basic | view |