Skip to content

Ali-Cheikh/LearningPython

Repository files navigation

Getting Started with Python

Objective

  • Introduce Python programming language.
  • Set up Python environment.
  • Learn basic syntax and data types.

Table of Contents

  1. Introduction to Python
  2. Setting Up Python Environment
  3. Basic Syntax and Data Types

1. Introduction to Python

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.

2. Setting Up Python Environment

Installation

  • Visit the official Python website to download the latest version of Python.
  • Follow the installation instructions for your operating system.

Integrated Development Environments (IDEs)

  • 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.

Code Editors

  • Sublime Text
  • Atom
  • Notepad++

3. Basic Syntax and Data Types

Syntax

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!")

Data Types

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}

Conclusion

This serves as a basic introduction to Python programming language. In the following lessons, we'll dive deeper into Python's features and functionalities.


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

About

python-ア-course in ptogress , <==20%========>⭕

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published