The best way to learn new things is to take a practical
approach of the things you want to learn. Here is a fragment of code that demonstrates the use of age calculator statement in Python:
Æ’ python command
def aging(my_age):
retire = my_age * 2 - 7
return retire
my_retire = aging(35)
print('I will retire when I am',
my_retire, 'years old!')
√ output
I will retire when I am 63 years old!
Sign up here with your email

ConversionConversion EmoticonEmoticon