Exercise 01 - PythonBasics
Exercise 01 - PythonBasics
• Task: Create variables of different data types (integer, float, string, boolean) and print their
types and values.
• Task: Convert between different data types and print the results.
• Task: Perform various string operations such as concatenation, slicing, and formatting.
Conditionals
Exercise 3.1: Simple Calculator
• Task: Write a program that takes two numbers and an operator (+, -, *, /) and performs the
corresponding calculation.
Loops
Exercise 4.1: Sum of Numbers
• Task: Generate the first 10 numbers of the Fibonacci sequence using a while loop
Functions
Exercise 5.1: Factorial Function
• Task: Write a program to create a file and write some text to it.