Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- class klasa1:
- def funkcja1(self):
- lista = [1,2,3]
- return lista
- class klasa2:
- def funkcja2(self, hello):
- print(hello[random.randint(0, len(hello))-1])
- uruchom1 = klasa1()
- lista = uruchom1.funkcja1()
- uruchom2 = klasa2()
- uruchom2.funkcja2(lista)
Advertisement
Add Comment
Please, Sign In to add comment