Python szllabus
Python szllabus
FOR SIRAAT!
1.1 Comments:
o Single-line (#) and multi-line ("""Docstrings""").
o Importance for code readability and documentation.
1.2 Variables and Data Types:
o What are variables? (Containers for data)
o Naming conventions (PEP 8).
o Fundamental Data Types:
int (Integers: whole numbers)
float (Floating-point numbers: decimals)
str (Strings: text) - basic operations (concatenation,
f-strings for
formatting)
bool (Booleans: True/False)
o Type conversion (casting): int(), float(), str(), bool().
o type() function to check data type.
1.3 Basic Operators:
o Arithmetic Operators: +, -, *, /, // (floor division), % (modulo), **
(exponentiation).
o Assignment Operators: =, +=, -=, *=, /=, etc.
o Comparison Operators: ==, !=, >, <, >=, <=. (Return Booleans)
o Logical Operators: and, or, not.
3.1 Lists:
o Definition, creation, and accessing elements (indexing, slicing).
o Mutability.
o Common List Methods: append(), extend(), insert(), remove(), pop(),
sort(), reverse(), len().
o List comprehensions (brief introduction).
3.2 Tuples:
o Definition, creation, and accessing elements.
o Immutability (key difference from lists).
o When to use tuples.
3.3 Dictionaries:
o Definition, creation (key-value pairs).
o Accessing, adding, modifying, and deleting elements.
o Common Dictionary Methods: keys(), values(), items().
o Iterating through dictionaries.
3.4 Sets:
o Definition, creation.
o Unordered collections of unique elements.
o Set operations: union, intersection, difference.
o When to use sets (e.g., for fast membership testing, removing duplicates).
9.1 Debugging:
o Using print() statements effectively.
o Brief introduction to using a debugger in your IDE.
9.2 Basic Project Ideas:
o Simple Calculator.
o To-Do List Application (text-based).
o Guess the Number Game.
o Basic Text Analyzer (word count, character count).
9.3 Where to Go Next?
o Web Development (Flask, Django)
o Data Science & Machine Learning (Pandas, NumPy, Scikit-learn)
o Automation (scripting with os, shutil)
o Game Development (Pygame)
o GUI Development (Tkinter, PyQt)