2 thoughts on “Udacity – Intro to Computer Science – Python – Stamps”

  1. This worked:

    def stamps(n):
    t = [0, 0, 0]
    t[0] = (n // 5)
    x = n – (t[0] * 5)
    t[1] = x // 2
    y = x – (t[1] * 2)
    t[2] = y // 1
    return tuple(t)

Comments are closed.