Name: ________________________________________________________
Umail Address: __________________________________@ umail.ucsb.edu
Please write your name only on this page. That allows me to grade your exams without knowing whose exam I am grading.
This exam is closed book, closed notes, closed mouth, cell phone off,
except for:
There are 100 points worth of questions on the exam, and you have 75 minutes to complete the exam.
A hint for allocating your time—on your first pass through the exam:
If you do that, you'll complete your first pass thorugh the exam in 50 minutes, and still have 25 minutes to
# function definition def drawC(t): # Move turtle to starting point t.up() t.forward(50); t.left(90); t.forward(100); 
Sample output for: fred = cTurtle.Turtle("turtle"); drawC(fred) 
drawC(fred,50,100) 
drawC(fred,25,100) 
drawC(fred,100,50) 
There is space for your answer on the next page.
drawC
function:import cTurtle
, or fred=cTurtle.Turtle("turtle")
or any of that other stuff, which is not relevant to the problem I'm asking you solve here. I only want the function definition for the rewritten drawC
function—nothing more, nothing less.
Space for you to write the function definition for drawC
for i in range(3): print (i)
for i in range(5,15,3): print (i)
for i in range(10,5,2): print (i)
bool complex float int str
Expression  Value  Type 

3 * 5  15  
1 + 1 < 3  True  
4 / 10  bool complex float int str 

4 // 10  bool complex float int str 

10 / 4  bool complex float int str 

10 // 4  bool complex float int str 

4 % 10  bool complex float int str 

10 % 4  bool complex float int str 

57 % 2  bool complex float int str 

57 % 5  bool complex float int str 

5 % 57  bool complex float int str 

"12"  bool complex float int str 

12.0  bool complex float int str 

1 + 1 == 3  bool complex float int str 
Total points: ?