Python
Programming Exercises,
Gently Explained
Exercise #28: Border Drawing ......................................................................................... 85
Exercise #29: Pyramid Drawing ....................................................................................... 88
Exercise #30: 3D Box Drawing ........................................................................................ 91
Exercise #31: Convert Integers To Strings ....................................................................... 95
Exercise #32: Convert Strings To Integers ....................................................................... 98
Exercise #33: Comma-Formatted Numbers ................................................................... 101
Exercise #34: Uppercase Letters .................................................................................... 104
Exercise #35: Title Case ................................................................................................. 107
Exercise #36: Reverse String ......................................................................................... 110
Exercise #37: Change Maker.......................................................................................... 114
Exercise #38: Random Shuffle ....................................................................................... 117
Exercise #39: Collatz Sequence ..................................................................................... 120
Exercise #40: Merging Two Sorted Lists ....................................................................... 123
Exercise #41: ROT 13 Encryption ................................................................................. 127
Exercise #42: Bubble Sort .............................................................................................. 130
Appendix A: Solutions ................................................................................................... 134
About the Author ............................................................................................................ 152