Skip to main content

Posts

Learning Python Coding Age 40 Day 3

Recent posts

Starting to learn Python At 40

Hello,
In this blog I will try to learn python by following this video course provided by "Mosh Hamedani". And those are some of exercises I created after watching the first 30 minutes.


full_name = input('enter ur name ')
dob = input("enter ur birth year ")
age = 2020 - int(dob)
weight_lbs = input("ur weight_lbs ")
weight_kg = int(weight_lbs) * 0.45
print('welcome ' + full_name + ' ur ' + str(age) + ' yrs old now, and ur ' + str(weight_kg) + ' Kg, thank u ... :)!')
-------------------------------------------------------------------
titleq = "generate a type of animal from this random string 'dkmieopzvkjqxcg' "
print(titleq)
chz = "dkmieopzvkjqxcg"
print('answer is ' + chz[0]+chz[5]+chz[14])
-------------------------------------------------------------------
I hope I am doing well so far ...
Regards,