Guest User

Untitled

a guest
Jul 20th, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import random
  2.  
  3. class klasa1:
  4. def funkcja1(self):
  5. lista = [1,2,3]
  6. return lista
  7.  
  8. class klasa2:
  9. def funkcja2(self, hello):
  10. print(hello[random.randint(0, len(hello))-1])
  11.  
  12. uruchom1 = klasa1()
  13. lista = uruchom1.funkcja1()
  14. uruchom2 = klasa2()
  15. uruchom2.funkcja2(lista)
Advertisement
Add Comment
Please, Sign In to add comment