Week 4 Sample Program

Post date: Oct 28, 2016 3:01:41 PM

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