Created
September 12, 2017 16:32
-
-
Save marcoscastro/860ae96ab2d0e4a2e639b95420ed8fdf to your computer and use it in GitHub Desktop.
Curso Python 300 - Aula 36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Televisao: | |
def __init__(self): | |
self.ligada = False | |
self.canal = 4 | |
tv = Televisao() | |
print(tv.ligada) | |
print(tv.canal) | |
tv.canal = 10 | |
print(tv.canal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment