You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Write a program that asks the user for a number n and gives him the possibility to choose between #computing the sum and computing the product of 1,…,n.
s = int(input("Please enter a number:\n"))
p = input("Choose sum or product. Please input s for sum, p for product, or e for exit:\n")