Types of Scripting Language
Types of Scripting Language
Types of Scripting Language
class myclass:
“This class shows Python Syntax”
intval = 12345
def printsomething(self):
return “hello world”
class myclass:
def __init__ (self, list ) :
self.data = list # assign list to data
x = myclass ( [1,2,3,4,5] )
print x.data # what is printed?
Object Orientation
class Shape:
def __init__ (self) :
self.name = “Shape”