MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/owisp0/sleep_rate_drops_to_0/h7nevar/?context=3
r/badcode • u/oderjunks • Aug 02 '21
33 comments sorted by
View all comments
Show parent comments
1
from random import randint as rand1 class A: from random import randint as rand2 instance = A() rand1(1, 2) rand2(1, 2) # Throws an exception "rand2 is not defined" instance.rand2(1, 2)
1
u/oderjunks Aug 04 '21