Dec-24-2021, 11:37 PM
(Dec-24-2021, 08:09 PM)BashBedlam Wrote:(Dec-24-2021, 05:05 AM)CompleteNewb Wrote: I can't pass variable as a argument in a function called inside a function inside a class?Why not?
class Function_Test : def __init__ (self): pass def show (self, text) : print (text) def say_this (self, text) : self.show (text) tester = Function_Test () tester.say_this ('This text was sent to a function from a function inside a class instance.')
Yeah, but what i can't do this
class Function_Test : def __init__ (self): pass def say_this (self, text) : self.show (text) def show (text): print (text) tester = Function_Test () tester.say_this ('This text was sent to a function from a function inside a class instance.')So if i want to check the highest hand one of my class player has, i need to put the function to check if a hand has a pair(because I need to check if it has a pair, a straight or a flush) inside my player class, right?
class Player: