PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Type your age in he input
from random import *
x = randint(0,3)
age = (input())
try:
age = int(age)
except ValueError:
print("You didn't type your age! \n\nLook what you did... you caused an error.")
put = ('input your age')
if age >0 and age <= 12:
if x == 0 :
put = ("You are young")
elif x == 1:
put = ("You're still a kid, really")
elif x == 2:
put = ("What are you doing here? \nGo do your chores!")
elif x == 3:
put = ("I miss the days when I was young lile you \n :(")
elif age >= 13 and age <= 19:
if x == 0 :
put = ("We're both teenagers!")
elif x == 1:
put = ("Going through your rebellious phase, aren't you?")
elif x == 2:
put = ("Its a good thing youre already coding at this age...")
elif x == 3:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run