You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 2. When the class or the blueprint of the TV is done, create another file named test_tv.py to test and produce the channel and volume level of tv 1 and tv 2
from TV import TV
def test_TV():
tv1 = TV()
tv2 = TV()
tv1.turn_on()
tv1.set_channel(30)
tv1.set_volume(3)
tv2.turn_on()
tv2.set_channel(3)
tv2.set_volume(2)
print(f"tv1's channel is {tv1.get_channel()} and volume level is {tv1.get_volume()}")
print(f"tv2's channel is {tv2.get_channel()} and volume level is {tv2.get_volume()}")