Next Index Previous

Python Examples

14. Python Class and Object example.

class student:
	name = ''
	fees = ''
   
	def display(self):
		print(self.name)
		print(self.fees)
		
Harsha=student()
Harsha.name='Harsha'
Harsha.fees=50000
Harsha.display()
Output :
Harsha
50000


Father of Python Language

Guido-van-Rossum

Guido van Rossum

Born: January 31, 1956, Netherlands