- Get link
- X
- Other Apps
Data Driven Decision Making
B.Com Business Analytics
Sem I
Questions (6-10) : Python
|
Q6. Write a program to assign three values to the variables a, b and c and perform the operations addition, multiplication, ((a+b)+c), ( a-(b+c)), (a*(b+c)), (a + (b*c)),
(a*(b-c)). #Write a program to assign three values to the variables a, b and c and perform the operations addition, multiplication, ((a+b)+c), (a-(b+c)), (a*(b+c)), (a + (b*c)), (a*(b-c)). a = int(input('Enter a number of your choice')) b= int(input('Enter a number of your choice')) c= int(input('Enter a number of your choice')) print(a+b) print("(a+b)+c)= ", (a+b)+c) print("a-(b+c)= ", a-(b+c)) print("a*(b+c)= ", a*(b+c)) print("a+(b*c)= ", a+(b*c)) print("a*(b-c)= ", a*(b-c)) Q7. Write a program to find the maximum and minimum of
the given list of numbers. #To find the maximum and minimum of numbers L1 = [45,56,24,13,68,74,45,10,9,100,78,32,12,90,15] print("maximum of the given number is :",max(L1)) print("minimum of the given numbers is :",min(L1))
|
- Get link
- X
- Other Apps
Comments
Post a Comment