Python workbook - a brief introduction with exercises and solutions 9783319142395, 9783319142401, 3319142399

While other textbooks devote their pages to explaining introductory programming concepts,The Python Workbookfocuses excl

433 109 6MB

English Pages 165 sidor; 24.5 cm [169] Year 2015

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
Preface......Page 6
Contents......Page 8
Part IExercises......Page 16
Exercise 33: Day Old Bread......Page 17
Exercise 43: Faces on Money......Page 28
Exercise 60: Roulette Payouts......Page 32
Exercise 71: Square Root......Page 41
Exercise 75: Greatest Common Divisor......Page 45
Exercise 78: Decimal to Binary......Page 47
Exercise 80: Coin Flip Simulation......Page 48
Exercise 103: Magic Dates......Page 51
Exercise 123: Infix to Postfix......Page 60
Exercise 124: Evaluate Postfix......Page 68
Exercise 127: The Sieve of Eratosthenes......Page 69
6.1 Exercise 128: Reverse Lookup......Page 72
6.3 Exercise 130: Text Messaging......Page 73
6.4 Exercise 131: Morse Code......Page 74
6.5 Exercise 132: Postal Codes......Page 75
6.9 Exercise 136: Anagrams Again......Page 76
6.11 Exercise 138: Create a Bingo Card......Page 77
6.13 Exercise 140: Play Bingo......Page 78
Exercise 163: Words with Six Vowels in Order......Page 79
Exercise 165: Greatest Common Divisor......Page 89
Exercise 169: String Edit Distance......Page 90
Exercise 174: Run-Length Encoding......Page 92
Part IISolutions......Page 95
Solution to Exercise 33: Day Old Bread......Page 96
Solution to Exercise 60: Roulette Payouts......Page 105
Solution to Exercise 79: Maximum Integer......Page 115
Solution to Exercise 103: Magic Dates......Page 122
Solution to Exercise 127: The Sieve of Eratosthenes......Page 134
Solution to Exercise 138: Create a Bingo Card......Page 145
Solution to Exercise 161: Missing Comments......Page 151
Solution to Exercise 174: Run-Length Encoding......Page 162
Index......Page 167

Python workbook - a brief introduction with exercises and solutions
 9783319142395, 9783319142401, 3319142399

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Recommend Papers