30 Marks
Questions 1 - 5 Marks
Write a python program to write your first name on the screen by using turtle module.
import turtle background = turtle.Screen() background.bgcolor("white") # creates a graphics window shashi = turtle.Turtle() shashi.up() shashi.goto(-120,0) shashi.down() shashi.backward(30) shashi.right(90) shashi.forward(30) shashi.left(90) shashi.forward(30) shashi.right(90) shashi.forward(30)
shashi.right(90) shashi.forward(30) shashi.left(90)
shashi.up() shashi.goto(-90,0) shashi.down() shashi.forward(60) shashi.backward(30) shashi.left(90) shashi.forward(30) shashi.left(90) shashi.forward(30) shashi.left(180) shashi.forward(60)
shashi.up() shashi.goto(-30,-60) shashi.down()
shashi.left(180) …show more content…
dxef bubbleSort(alist): for passnum in range(len(alist)-1,0,-1): for i in range(passnum): if alist[i]>alist[i+1]: temp = alist[i] alist[i] = alist[i+1] alist[i+1] = temp
alist = [54,26,93,17,77,31,44,55,20] bubbleSort(alist) print(alist)
Question 4 – Open ended question – 10 Marks
Write a GUI-based application or a game of your choice. The game or application can be of your choice and it can be anything based on what you have studied in the class. The marks will be awarded based on the topic/game selected, creativity, how GUI is build, logic, application of the OOPS concepts, and simplicity of the code.
Note : You cannot build Bank application.
Submission :
You assignment should be submitted as 4 single python files zipped.
Submit the zip file to learnline.
Last date is 20th October 2017 12