445,830 views
29 votes
29 votes
How do you keep a class running after you use a class function once in Python 3.​

User RolandasR
by
2.9k points

1 Answer

15 votes
15 votes

Answer: Primitive data structures—like numbers, strings, and lists—are designed to represent simple pieces of information, such as the cost of an apple, the name of a poem, or your favorite colors, respectively. What if you want to represent something more complex?

For example, let’s say you want to track employees in an organization. You need to store some basic information about each employee, such as their name, age, position, and the year they started working.

User Nihulus
by
2.3k points