Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For python 11:32 bbhosted.cuny.edu AT&T LTE The program turtleString.py [attached to this assignmnent takes a string as input and uses that string to control what

For python
image text in transcribed
image text in transcribed
11:32 bbhosted.cuny.edu AT&T LTE The program turtleString.py [attached to this assignmnent takes a string as input and uses that string to control what the turtle draws on the screen Currently, the program processes the following commands: 'F": moves the turtle forward "L: turns the turtle 90 degrees to the eft R: turns the turtle 90 degrees to the right 'A': lifts the pen V': lowers the pen For example, if the user enters the string FLFLFLFLAFFFvFLFLFLFL", the turtle would move forward and then turn left. It repeats this 4 times, drawing a square Next, it lifts the pen and move forward 3 puts the pen back down and draw another square. Modify this program to allow the user also to specify with the following symbols B': moves the turtle backwards 'r": change the pen color to red g': change the pen color to green 'b': change the pen color to blue Submit your modified program (including a comment at the top of the program with your name) turtleString.py

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions