/Python_workout

Primary LanguageJupyter Notebook

Python_workout

Python Workout 50 Essential Exercises by Reuven M Lerner

Chapter 1: Numeric types

  Exercise 01: Number guessing game
  Exercise 02: Summing numbers
  Exercise 03: Run timing
  Exercise 04: Hexademical output

Chapter 2: Strings

  Exercise 05: Pig Latin
  Exercise 06: Pig Latin sentence
  Exercise 07: Ubbi Dubbi
  Exercise 08: Sorting a string

Chapter 3: Lists and tuples

  Exercise 09: First-Last
  Exercise 10: Summing anything
  Exercise 11: Alphabetizing names 
  Exercise 12: World with most repeated letters
  Exercise 13: Printing tuple records

Chapter 4: Dictipnaries and sets

  Exercise 14: Restaurant
  Exercise 15: Rainfall
  Exercise 16: Dictdiff
  Exercise 17: How many different numbers

Chapter 5: Files

  Exercise 18: Final line
  Exercise 19: File from dicrectory to dictionary
  Exercise 20: Word count
  Exercise 21: Longest wod per file
  Exercise 22: Reading and writing CSV
  Exercise 23: JSON
  Exercise 24: Reverse lines

Chapter 6: Fuctions

  Exercise 25: XML generator
  Exercise 26: Prefix notation calculator
  Exercise 27: Password generator

Chapter 7: Functional programming with comprehensions

  Exercise 28: Join numbers
  Exercise 29: Add numbers
  Exercise 30: Flatten a list
  Exercise 31: Pig Latin translation of a file
  Exercise 32: Flip a dict
  Exercise 33: Transform values
  Exercise 34: (Almost) supervocalic words
  Exercise 35: Gematria

Chapter 8: Modules and packages

  Exercise 36: Sales tax
  Exercise 37: Menu

Chapter 9: Objects

  Exercise 38: Ice cream scoop
  Exercise 39: Ice cream bowl
  Exercise 40: Bowl limits
  Exercise 41: A bigger bowl
  Exercise 42: Flexible Dict
  Exercise 43: Animals
  Exercise 44: Cages
  Exercise 45: Zoo

Chapter 10: Iterators and generators

  Exercise 46: MyEnumerate
  Exercise 47: Circle
  Exercise 48: All lines, all files
  Exercise 49: Elapsed since
  Exercise 50: MyChain