You should also test it to make sure it works and

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n yourself.) def mars_explore_main(): ''' main function for mars_explore: set up print and graphical output then call mars_explore repeatedly data is printed; no value is returned ''' print("xpos", "\t", "ypos", "\t", "water", "\t", "temp") # label for print output # set up graphical output reset() title("Mars Rover") display_color = "blue" color(display_color) square(10, display_color) # draw the rover # explore three places on Mars #mars_explore() #mars_explore() #mars_explore() We will talk about this code in lab this week. You should also test it to make sure it works and read through it so you understand what is happening on each line. H...
View Full Document

This note was uploaded on 02/12/2014 for the course CIS 122 taught by Professor Staff during the Spring '08 term at University of Oregon.

Ask a homework question - tutors are online