Homework 4

Covering the bases

Due: 11:59pm on Monday, February 19, 2018

Submission: submit your solutions at the submissions server

Homework Problems

These problems investigate different representations for various data and the conversions between them...

(hw4pr0.py) (hw4pr1.py)(hw4pr2.py) (hw4pr3.zip)

Keep in mind that Python does offer its own conversion functions, particularly for strings and ints:

  • str(N) is a function that takes an integer as input and returns the string version of that integer
  • int(S) is a function that takes a string of digits as input and returns the integer version of that string.