python_qa_final
python_qa_final
Unit 1
print("Welcome to Python")
4. Write short notes on Python numbers.
Unit 1
Features of Python:
Arithmetic +, -, *, /, //, %
Unit 2
if x > 5:
print("Greater")
elif x == 5:
print("Equal")
else:
print("Smaller")
for i in range(5):
print(i)
Python has built-in functions like print(), len(), type(), max(), min(),
etc.
result = add(5, 3)
print(result) # Output: 8