[Tutor] Television

Vincent Balmori vincentbalmori at yahoo.com
Sat Jun 25 10:18:37 CEST 2011


The question for this is to make a program that simulates a TV by creating it
as an object. The user should be able to to enter a channel and or raise a
volume. Make sure that the Channel Number and Volume stay within valid
ranges. Before I can even start correcting my code this error shows up. I
thought I had already created the "tv" instance.
http://old.nabble.com/file/p31925053/Television Television 

Traceback (most recent call last):
  File
"/Users/vincentbalmori/Desktop/Python/py3e_source/chapter08/Television",
line 83, in <module>
    main()
  File
"/Users/vincentbalmori/Desktop/Python/py3e_source/chapter08/Television",
line 46, in main
    print(Television(tv.display))
NameError: global name 'tv' is not defined


-- 
View this message in context: http://old.nabble.com/Television-tp31925053p31925053.html
Sent from the Python - tutor mailing list archive at Nabble.com.



More information about the Tutor mailing list