Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- class RandomTestClass:
- def __init__(self, number) -> None:
- super().__init__()
- self.number = number
- def __str__(self) -> str:
- return str(self.number)
- def my_method(self, some_thing, another_thing=None):
- print("I'm called now with " + str(some_thing) + str(another_thing))
- test = RandomTestClass(1)
- test.my_method(2)
- print(random.randrange(3))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement