Thursday, 20 August 2020

Python Workbook Questions - Solutions (Part 4)

 

This article contains my solutions to the exercises from "The Python Workbook", by Ben Stephenson. All solutions are written in Python 3.


Special Thanks to Mr. Parasar Poudel for his contribution to this project.




Exercise 81: Compute the Hypotenuse



Exercise 82: Taxi Fare






Exercise 83: Shipping Calculator






Exercise 84: Median of Three Values



Exercise 85: Convert an Integer to its Ordinal Number




Exercise 86: The Twelve Days of Christmas




Exercise 87: Center a String in the Terminal




Exercise 88: Is it a Valid Triangle?



Exercise 89: Capitalize It




Exercise 90: Does a String Represent an Integer?



Exercise 91: Operator Precedence




Exercise 92: Is a Number Prime?




Exercise 93: Next Prime




Exercise 94: Random Password






Exercise 95: Random License Plate





Exercise 96: Check a Password




Exercise 97: Random Good Password



Exercise 98: Hexadecimal and Decimal Digits




Exercise 99: Arbitrary Base Conversions



Exercise 100: Days in a Month




Exercise 101: Reduce a Fraction to Lowest Terms



Exercise 102: Reduce Measures







Exercise 103: Magic Dates


2 comments:

Let's make it better!
Comment your thoughts...

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search