A thermometer reading should turn into text through its own special method. The method gives back the stored number as it is.
class Reading:
def __init__(self, degrees):
self.degrees = degrees
def __str__(self):
return self.degrees
r = Reading(7)
print("Now: " + str(r))
What happens when the program runs?