Write a single statement that prompts the user to enter an integervalue and stores that value (as an integer) in a variable calledquantity.
A program has computed a value for the variable average thatrepresents the average high temperature in San Diego for the monthof May. Write an appropriate output statement.
What appears on the screen after execution of the followingstatement?
print(“This is” + “goodbye” + “, Steve”)
Solution
1.quantity = int(input(“Enter integer: “))2.total = float(input(“Enter total temperature: “))count = int(input(“Enter how many months of May: “))avgerage = total/count3.This isgoodbye, Steve