Question: Using python im trying to create a code that follows these specifications below A Picologo program consists of zero or more commands ending with the
Using python im trying to create a code that follows these specifications below
A Picologo program consists of zero or more commands ending with the x command. Any input following an x command is ignored. The Picologo commands sre processed in the order in which they appear.
Picologo programs may also contain blank, zero-length lines that should be skipped and do not otherwise affect processing of the Picologo program.
A nonblank line will contain exactly one Picologo command. A picologo command may be one of the following:
- b: moves the turtle backward 1 unit
- d: places the turtle's pen down
- f: moves the turtle forward 1 unit
- l: turns the turtle to the left by 1 degree
- r: turns the turtle to the right by 1 degree
- u: raises the turtle's pen up
- x: exits the Picologo program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
