Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class pythanie:
  2. print("hello\n\n\n")
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. ###################################################
  13. print("klasa wypisywała powitanie\nmimo,\
  14. ze nie zostala zaincjalizowana \n\
  15. chciałbym aby klasa wypisywała powitanie ale tylko przy \
  16. inicjalizacji\n\n\n")
  17.  
  18. class pythanie2:
  19. def __init__(self):
  20. print("Siemcio")
  21.  
  22.  
  23. emg = pythanie2
  24. print('Dlaczego klasa nie wypisała napisu "Siemcio??" ')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement