/pythongently

This is my solutions for Python Programming Exercises, Gently Explained.

Primary LanguagePython

Solutions for Python Programming Exercises, Gently Explained

Here are my solutions for the book Python Programming Exercises, Gently Explained by Al Sweigart. The solutions are tested with the help of pytest, which I'm learning how to use. Furthermore, I also add type hints to my solutions.

Table of Contents

1. Exercise #1: Hello, World!

2. Exercise #2: Temperature Conversion

3. Exercise #3: Odd & Even

4. Exercise #4: Area & Volume

5. Exercise #5: Fizz Buzz

6. Exercise #6: Ordinal Suffix

7. Exercise #7: ASCII Table

8. Exercise #8: Read Write File

9. Exercise #9: Chess Square Color

10. Exercise #10: Find and Replace

11. Exercise #11: Hours, Minutes, Seconds

12. Exercise #12: Smallest & Biggest

13. Exercise #13: Sum & Product

14. Exercise #14: Average

15. Exercise #15: Median

16. Exercise #16: Mode

17. Exercise #17: Dice Roll

18. Exercise #18: Buy 8 Get 1 Free

19. Exercise #19: Password Generator

20. Exercise #20: Leap Year

21. Exercise #21: Validate Date

22. Exercise #22: Rock, Paper, Scissors

23. Exercise #23: 99 Bottles of Beer

24. Exercise #24: Every 15 Minutes

25. Exercise #25: Multiplication Table

26. Exercise #26: Handshakes

27. Exercise #27: Rectangle Drawing

28. Exercise #28: Border Drawing

29. Exercise #29: Pyramid Drawing

30. Exercise #30: 3D Box Drawing

31. Exercise #31: Convert Integers To Strings

32. Exercise #32: Convert Strings To Integers

33. Exercise #33: Comma-Formatted Numbers

34. Exercise #34: Uppercase Letters

35. Exercise #35: Title Case

36. Exercise #36: Reverse String

37. Exercise #37: Change Maker

38. Exercise #38: Random Shuffle

39. Exercise #39: Collatz Sequence

40. Exercise #40: Merging Two Sorted Lists

41. Exercise #41: ROT 13 Enryption

42. Exercise #42: Bubble Sort