Python Course Notes
Python Course Notes
PythonCourse_01_Intro
Python is a versatile and powerful programming language, ideal for beginners and
experienced developers alike. This section explores the history, features, and real-world
applications of Python.
#### Exercises
1. Install Python on your machine and verify the installation.
2. Write a Python program to display your name and age.
3. Explore the Python REPL and execute basic commands.
---
PythonCourse_02_Expressions
#### Exercises
1. Write a program to calculate the area of a circle using the formula: `Area = π * r^2`.
2. Create a program to determine whether a number is even or odd.
3. Experiment with logical operators (`and`, `or`, `not`) in multiple scenarios.
PythonCourse_03_Conditionals
#### Exercises
1. Write a program to determine if a year is a leap year.
2. Create a program that takes a number as input and outputs whether it is positive,
negative, or zero.
3. Develop a rock-paper-scissors game using conditional statements.
PythonCourse_04_Functions
Functions are essential for code organization and reuse. Learn about function parameters,
scope, and best practices.
#### Exercises
1. Write a function that calculates the Fibonacci sequence up to a given number.
2. Create a program with a function that checks if a string is a palindrome.
3. Develop a temperature converter function (Celsius to Fahrenheit and vice versa).