0

Python TinderTall Code

Can someone review the following python code and tell me if it is correct. Or how I can make it better? Thank you. ———————— CentTall = input('what is her height in centimeters?') InchTall = int(CentTall) % 2.54 if InchTall < 68 : print('Keep her!') else : print('bye!')

6th Nov 2019, 11:15 AM
Juanathon
3 Answers
+ 1
What is purpose of code and what it is doing please tell.
6th Nov 2019, 11:24 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
it is more simple no.of centimeters×0.39=no.of inches. And your code is right.
6th Nov 2019, 3:57 PM
Maninder $ingh
Maninder $ingh - avatar
0
its supposed to convert centimeters to inches and if the inches are below 68, then it will print - keep her. If the inches are above 68 then the code shoukd print - bye.
6th Nov 2019, 12:13 PM
Juanathon