Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flowchart in python age calculation

I’ve got given this homework and in it I need to convert a simple flowchart into python, but I am stuck on this one bit. I need to calculate the future age but I don’t know how to any help with this would be nice, thanks in advance.FLOWCHART IMAGE

This is what I’ve already tried: Flowchart

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I hope this solves your question!
Refer to this:

name = input()
print("Hello ",name," I am from the year 2210 and I am 20 years old")
print("How old are you?")
age = int(input())
future_age = age+(2210-2020)
print("Wow, by 2210 you will be",future_age,"that is really old!")
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading