- Introduce Python programming language.
- Set up Python environment.
- Learn basic syntax and data types.
Python is a high-level, interpreted programming language known for its simplicity and readability. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming. Python is widely used in various domains such as web development, data science, artificial intelligence, and automation.
- Visit the official Python website to download the latest version of Python.
- Follow the installation instructions for your operating system.
- PyCharm: A powerful IDE developed by JetBrains.
- Visual Studio Code (VS Code): A lightweight, open-source editor with Python support.
- Jupyter Notebook: An interactive web-based tool for data science and machine learning.
- Thonny: An IDE mede for python beginners used mostly in schools offers great set of plugins and assistance while writing code.
- Sublime Text
- Atom
- Notepad++
Python uses indentation to define code blocks, unlike other programming languages that use braces {}
. Here's an example of Python syntax:
# Hello World program
print("Hello, World!")
Python supports various data types, including:
- Integers:
int
- Floating-point numbers:
float
- Strings:
str
- Lists:
list
- Tuples:
tuple
- Dictionaries:
dict
- Sets:
set
Here are examples of defining variables with different data types:
# Integer
num1 = 10
# Floating-point number
num2 = 3.14
# String
name = "John Doe"
# List
fruits = ["apple", "banana", "orange"]
# Tuple
coordinates = (10, 20)
# Dictionary
person = {"name": "John", "age": 30}
# Set
unique_numbers = {1, 2, 3, 4, 5}
This serves as a basic introduction to Python programming language. In the following lessons, we'll dive deeper into Python's features and functionalities.
- Lesson 1: Introduction to Python Loops
- Lesson 2: Python Functions
- Lesson 3: Python Classes and Objects
- Lesson 4: Python File Handling
- Lesson 5: Python Modules and Packages
2024 Ali cheikh @unexpected14 this repo is homework at the same time as its for teaching purposes spent great ammount of time on understanding each line before thinking about writing it .
- And God bless StackOverflow