Question: 3. Write A Program On Python That Asks The User For A Color, A L
Question: 3. Write A Program On Python That Asks The User For A Color, A L
home / study / engineering / computer science / computer science questions and answers / 3. write a program on python that asks the user for a …
Question: 3. Write a program on python that asks the user for a color, a l… Post a question
Answers from our experts for your tough
homework questions
3. Write a program on python that asks the user for a color, a line width, a line length and a shape.Assume Enter question
that the user will specify a that is either a line, a triangle, or a square. Use turtle graphics to draw the shape
that the user requests of the size, color, line width and line length that the user requests. For example, if
these are the user choices for color, width,line length and shape what color? blue whatline width? 25
whatline length? 100 line, triangle or square? triangle
Continue to post
Python code no for loop
only if and elif 1 question remaining
thank you
My Textbook Solutions
Run 1:
Run 2:
Run 3:
Code to Copy:
import turtle
class TurtleDraw():
#s = turtle.Screen()
try:
tObject.pencolor(color)
except:
print('please enter one of the given colors')
try:
else:
try:
shape = input('select any one of these to draw:- line, triangle, or square: ')
tObject.pensize(width)
tObject.forward(length)
tObject.forward(length)
tObject.right(120)
tObject.forward(length)
tObject.right(120)
tObject.forward(length)
tObject.forward(length)
tObject.right(90)
tObject.forward(length)
tObject.right(90)
tObject.forward(length)
tObject.right(90)
tObject.forward(length)
Comment
Q: 3. Write a program on python that asks the user for a color, a line width, a line length and a shape.Assume that the
user will specify a that is either a line, a triangle, or a square. Use turtle graphics to draw the shape that the user
requests of the size, color, line width and line length that the user requests. For example, if these are the user choices
for color, width,line...
A: See answer
Q: Python Use turtle graphics to draw the shape that the user requests of the size, color, line width and line length that
the user requests. For example, if these are the user choices for color, width, line length and shape
Show more
Q: 1. Write Python code that does the following: a. Assigns the values 3, 4 and 5 to the variables a, b and c, respectively
b. Write an if statement that prints "OK" if a is less than b c. Write an if statement that prints "OK" if c is less than b d.
Write an if statement that prints "OK" if the sum of a and b is equal to c e. Write an if statement that prints "OK" if the
sum of a...
A: See answer
Q: Python
Show more
COMPANY LEGAL & POLICIES CHEGG PRODUCTS AND SERVICES CHEGG NETWORK CUSTOMER SERVICE
About Chegg Advertising Choices Cheap Textbooks Mobile Apps EasyBib Customer Service
Chegg For Good Cookie Notice Chegg Coupon Sell Textbooks Internships.com Give Us Feedback
College Marketing General Policies Chegg Play Solutions Manual Thinkful Help with eTextbooks
Corporate Development Intellectual Property Rights Chegg Study Help Study 101 Help to use EasyBib Plus
Investor Relations Terms of Use College Textbooks Textbook Rental Manage Chegg Study
Jobs Global Privacy Policy eTextbooks Used Textbooks Subscription
Join Our Affiliate Program DO NOT SELL MY INFO Flashcards Digital Access Codes Return Your Books
Media Center Honor Code Learn Chegg Money Textbook Return Policy