@christinaSmith/

Calculate_age_python

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4963909327233309","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"eWVhciA9IGludChpbnB1dCgiV2hhdCB5ZWFyIHdlcmUgeW91IGJvcm46ICIpKQoKZGVmIGNhbGN1bGF0ZV9hZ2UoeWVhcik6CiAgICBhZ2UgPSAyMDE4IC0geWVhcgogICAgcmV0dXJuIGFnZQoKeW91cl9hZ2UgPSBjYWxjdWxhdGVfYWdlKHllYXIpCgpwcmludCgiWW91IGFyZSAiICsgc3RyKHlvdXJfYWdlKSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
year = int(input("What year were you born: "))

def calculate_age(year):
    age = 2018 - year
    return age

your_age = calculate_age(year)

print("You are " + str(your_age))