Multimedia- Python is a programming language that is commonly used for developing desktop and web applications. Moreover, Python is designed with the feature to assist with the process of data analysis and visualization. Python is found to use for web programmings like Django, Zope, Google App Engine, and much more. In the same way, they are also used in desktop application such as Blender 3D and even for pygames.
During Multimedia/Technology class is in process of learning rules and the basic form of Python such as :
If statement-
a = 33
b = 200
if b > a:
print(“b is greater than a”)
Elif statement-
a = 33
b = 33
if b > a:
print(“b is greater than a”)
elif a == b:
print(“a and b are equal”)
Else statement-
a = 200
b = 33
if b > a:
print(“b is greater than a”)
else:
print(“a is greater than b”)
For loop-
foods = [‘chicken’, ‘pizza’, ‘soup’]
for food in foods:
print ‘Current foods :‘, food
Break statement-
foods = [‘chicken’, ‘pizza’, ‘soup’]
for food in foods:
if x == “pizza“:
break
Continue statement-
foods = [‘chicken’, ‘pizza’, ‘soup’]
for food in foods:
if x == “pizza“:
continue
print(x)
Range Function-
for i in range(100):
print(i)
Want to see the result?
Try it yourself!