Computer Science Manzoor Python programs Distance learning Due 2:30
Python Programming Question:
Q. Write a program that takes two numbers from the user and prints its sum.
num1 = input('Enter first number: ')
num2 = input('Enter second number: ')
sum = float(num1) + float(num2)
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
Q1. ______________structures is the simplest form of decision making structure:
(a) if-else
Answer:
2. ___________ returns True if X=5 and Y= 10;
(a) X>=Y
Answer:
Q3 . __________ is logical operator:
(b) OR
Answer:
Comments
Post a Comment