Could you provide the updated code in Python 3?
Could you provide the updated code in Python 3?