We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Class vs. Instance
- Discussions
Class vs. Instance
Class vs. Instance
Sort by
recency
|
10 Discussions
|
Please Login in order to post a comment
class Person:
class Person:
Swift Code: -
class Person { var age: Int = 0
}
What is wrong with my code?
Technically, it is giving the right answer but the expected output doesn't repeat this -> "Age is not valid, setting age to 0." Thought it should get printed on each test case run but in the questions the expected output skips this lines after 1st run. Why?
Python 3