Python Chapter 2 Assignment - Ur Engineering Friend
Python Chapter 2 Assignment - Ur Engineering Friend
Assignment – 2nd
1. Define operators.
2. List any four types of operators. Explain any two.
3. List out any 5 arithmetic operators.
4. Write a program for arithmetic operations
5. In 5th semester , Pramesh and satish got marks as follows:
Pramesh Satish
Advance Java – 65 Advance Java – 56
Environmental Studies – 68 Environmental Studies – 69
Operating System – 59 Operating System – 67
Software Testing – 55 Software Testing - 59
Calculate the total marks , percentage and display the result . Also
display who was the topper of 5th semester from both of friend.
6. Write a program to demonstrate the use of relational operator.
7. Write a program to demonstrate the use of Identity operators.
8. What is the difference between operand and operator. Explain with an
example
9. What are the different logical operators in python?Explain with an
example.
10. Write a program to find out the highest number between 3 numbers. Take
input from user.
11. Write a program to check whether the given number is positive or
negative. Take input from user.
x=5
while(x<15):
print(x**2)
x+=3
a=7
b=5
while(a<9):
print(a+b)
a+=1
b=5
while(b<9):
print("H")