repl.it
@THEJOEMAN23/

def function age

Python

No description

fork
loading
Files
  • main.py
main.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
print('age simulator!')
print('                                                                                                                 ')







def check_age(age):
  if age >=0 and age <2:
    return 'baby'
  if age >=2 and age <5:
    return 'todler'
  if age >=5 and age <13:
    return 'kid'
  if age >=14 and age <18:
    return 'teenager'
  if age >=19 and age <60:
    return 'adult'
  if age >=61 and age <130:
    return 'grand-parent'

enter_rees = int(input('age: '))
result = check_age(enter_rees)

print(result)
?