Answers for "python use var in another function"

0

python use var in another function

class Spam:
    def oneFunction(self,lists):
        category=random.choice(list(lists.keys()))
        self.word=random.choice(lists[category])

    def anotherFunction(self):
        for letter in self.word:              
            print("_", end=" ")
Posted by: Guest on January-04-2022

Code answers related to "python use var in another function"

Python Answers by Framework

Browse Popular Code Answers by Language