Hi guys, please how do I create a python program that can tell ones age in 100 years | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi guys, please how do I create a python program that can tell ones age in 100 years

python

10th Aug 2018, 9:46 AM
Abiola Ailara
Abiola Ailara - avatar
5 Answers
+ 1
So the input would be their birth year and the program would add 100 to that?
10th Aug 2018, 10:12 AM
Janning⭐
Janning⭐ - avatar
0
Like a program that takes someone's current age and adds 100 to it?
10th Aug 2018, 9:52 AM
Janning⭐
Janning⭐ - avatar
0
no, one that tells what year a person will be 100
10th Aug 2018, 9:56 AM
Abiola Ailara
Abiola Ailara - avatar
0
age = int(input("age?")) year = 2018-age+100 ? xD sure you could import dynamic current year with time module :D
10th Aug 2018, 11:08 AM
Markus Kaleton
Markus Kaleton - avatar
0
Ohhh thank you
10th Aug 2018, 11:09 AM
Abiola Ailara
Abiola Ailara - avatar