TP1 PYTHON ING 24_25(1) (2)
TP1 PYTHON ING 24_25(1) (2)
ING RSI
LAB work 1
Exploring Different Types of Operators in Python
Objectives:
Understand the functionality of different types of operators in Python.
Apply arithmetic, logical, comparison, bitwise, and assignment operators to solve problems.
Reminder:
Python provides the following arithmetic operators:
Work to do:
The work consists of 6 exercises.
Exercise 1: Write a Python program to:
Take two integer inputs from the user.
Perform all the arithmetic operations listed above on these two numbers.
Print the results of each operation.
1/2
Exercise 4: Write a Python program that:
Takes two integers as input.
Demonstrates all the bitwise operations on them. (for shift operations, use a step of 2)
2/2