Labels

Monday, January 17, 2022

Write a function problem1_2(x,y) that prints the sum and product of the numbers x and y on separate lines, the sum printing first.


def problem1_2(x,y):
    print(x+y)
    print(x*y)
problem1_2(2,3)# you can put any number instead of 2 and 3


No comments:

Post a Comment

How to get free course on Coursera with cirtificate ? , coursera Financial aid questions & answers :

Coursera Financial aid questions & answers   Q1) Why are you applying for Financial Aid? ans:-    I am in my second year of B.Tech in ...