Program Description:

This program was created using Python. This program allows you to have an one-on-one  conversation in which it would ask you for you age. The program would introduce itself and it would ask you for your name. If you respond, the program would continue asking you questions. If you response to the first question by not typing anything and just pressing space it would answer you back with a statement and would stop from asking any other question. Depending on your given age, the program would identify you and say something extra back to you. If you want to try this program just copy the program that is below and paste in to a new file in python.

Program: 

import sys
print (“Hello my name is Python”)
name = input (“What is your name “)
if len(name) > 0 and name.isalpha():
print (“Nice to meet you ” + str(name))
else:
print(“So you don’t want to talk. My apologies.”)
sys.exit()
if len(name) > 0 and name.isalpha():
answer = input(“Would you like to tell me your age? (Yes or No) “)
if str(answer) == “Yes” or str(answer) == “yes”:
age = input(“Nice. So, what is your age?”)
elif str(answer) == “No” or str(answer) == “no”:
print (“privacy is privacy ‘:)'”)
if str(answer) == “No” or str(answer) == “no”:
sys.exit()
if float(age) >=0 and int(age) <= 2:
print (“You are an infant!!! How are you even typing?!”)
if int(age) >=10 and int(age)<= 18:
print (“You are a teenager, you have a long way to go.”)
if float(age) >=3 and float(age) <10:
print (“Should a call you a baby or a child?! :D”)
if int(age) >= 18 and int(age) <= 40:
print (“You are an adult, I hope life is going well”)
elif int(age) >= 100 and int(age) <= 9999:
print (“You are lying.”)
if int(age) >= 41 and int(age) < 100:
print (“You are old, you know a lot about life.”)