class FirstClass: n = 4 def __init__(self, n): n = n//4 a = FirstClass(8) print(a.n)
Learn more efficiently, for free:
Introduction to Python
7.1M learners
Introduction to Java
4.7M learners
Introduction to C
1.5M learners
Introduction to HTML
7.5M learners