1

What are the differences between the variables, bar and foobar in the following piece of code?

class Foo():
    def __init__(self):
        self.foobar = 50
    bar = 50

And why use one method over the other?

0

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.