Week 4 Sample Program

posted Oct 28, 2016, 8:01 AM by Attila Lengyel
print("I will help you to sum numbers up")

sum = 0

while (sum < 30):
sum = sum + int(input("Give me a number:"))
print(sum)
if (sum >= 30): 
print("Reached the limit!")
while (1):
answer = input("How are you?")
if (answer == "Great!"):
print("Glad to hear!")
break


Comments