#Ito po code ko diko talaga ma gets. Pa help mga papsy
sum, i=0, 3
number=int(input("Input number:"))
choice = input("Again?(Y/N)")
while choice.lower() == "y" or choice.upper() == "Y":
for i in range(1,3):
sum = sum + number
print("Total number inputted:",choice)
print("Sum:",sum)
#Gusto koopo output is yung
>Total inputted number: #mag output kung kelan ilang beses ako nag input ng number
>Sum: #yung ma add sana number ng total na nainput ko.
# create an empty list to store the numbers entered by the user
numbers = []
# ask the user if they want to enter a number
try_again = input("Do you want to enter a number? (yes/no): ")
# keep asking for a number as long as the user wants to
while try_again.lower() == "yes":
# ask the user for a number
num = input("Enter a number: ")
# add the number to the list
numbers.append(num)
# ask the user if they want to try again
try_again = input("Do you want to enter another number? (yes/no): ")
# calculate the total number of numbers entered
total_numbers = len(numbers)
# calculate the sum of the numbers entered
sum_numbers = sum(numbers)
# print the total number of numbers entered
print("Total numbers: ", total_numbers)
# print the sum of the numbers entered
print("Sum of numbers: ", sum_numbers)