Python Basics & Popular LibrariesA concise guide (10 pages)Covers:Syntax Data Types Control FlowFunctions Classes Files LibrariesWhat is Python?Python is a popular high-level programming language known for its simple syntax andversatility.It is used in web development, data science, automation, artificial intelligence, scripting,and more.1. Getting Started Install: python.org or Anaconda (for data science) Run file: python file.py Interactive: python Package manager: pip install package Virtual environment: python -m venv .venv2. Basics & Syntax# Variables and typesname = "Alice" # strage = 25 # intheight = 5.7 # floatis_student = True # bool# Printingprint(f"My name is {name}, I am {age} years old")# Comments# This is a comment3. Data Types Numbers: int, float, complex String: "Hello" (immutable) List: [1, 2, 3] (mutable, ordered) Tuple: (1, 2, 3) (immutable, ordered) Dict: {"a": 1, "b": 2} (key-value) Set: {1, 2, 3} (unique, unordered) None: absence of value4. Control Flow# If-elseif age > 18: print("Adult")else: print("Minor")# Loopsfor i in range(5): print(i)while age > 0: age -= 15. Functions & Modulesdef greet(name: str) -> str: return f"Hello, {name}"print(greet("Alice"))# Importing modulesimport mathprint(math.sqrt(16))# From-importfrom random import randintprint(randint(1, 10))6. Classes & OOPclass Dog: def __init__(self, name): self.name = name def bark(self): return f"{self.name} says woof!"d = Dog("Buddy")print(d.bark())7. File Handling & Errors#