Q. Write a program that inputs a number n (integer) and creates a tuple containing: n, 2n, 3n and 4n.

 

Answer =

 

num = int(input("Enter a number :- "))
tup = (num , num * 2, num * 3, num * 4)
print (tup)

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post