How to create a Class and it's Object in Python?
The class definition starts with the class keyword. This is followed by a class name and is terminated with a colon.
class Employee: salary = 10000 name = "John Doe" emp1 = Employee() print(emp1.salary) print(emp1.name)
Sample output of above program.
10000 John Doe
2019-06-23T15:33:18+05:30
2019-06-23T15:33:18+05:30
Amit Arora
Amit Arora
Python Programming Tutorial
Python
Practical Solution