PY
py
1
2
3
4
5
6
7
8
9
10
11
#Three year old simulator
#Demonstrates the while loop
print("\t welcome to the 'three year old simulator'")
print("this program simulates a conversation with a three year old.")
print("try to stop the madness.\n")
response = ""
while response != "Because.":
response = input("why?\n")
print ("oh. okay.")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run