Indigeneous pre-program 2023 Assessment

This assessment consists of 3 questions. You need to download this zip file.

Question 1:

Open the file test1.py. Assign appropriate values to the variables x1, y1, x2 and y2 so that the program will create the triangle shown below.

You need to complete this exercise in the file test1.py provided.



Exercise 2:

Write a Python program to draw the picture below. You can use any method your like but the preferred method is to use a for-loop.

You need to complete this exercise in the file test2.py provided.


Exercise 3

Write a Python program to create the picture below. The pattern is: Starting at (0,0), head east by 5 units, head north-west for 7 units, head east by 5 units, head north-west by 7 units, and so on. You can use any method you like but the preferred method is to use a for-loop.

You need to complete this exercise in the file test3.py provided.


End of assessment.