Ravi wrote: > The following code didn't work: In the future, explain "didn't work". Wrong output? give actual (copy and paste) and expected. Error message? give traceback (copy and paste).