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

Popular posts from this blog

B Day US History IIB 4-5 Due 2:30 PM Mr. Urbankowski CHAPTER 19 (THE FIRST WORLD WAR) ASSESSMENT/TEST

B Day Bio Presentation Final Mr. Benedict