Answered step by step
Verified Expert Solution
Question
1 Approved Answer
question 15 to 19 (for question 19 has to be the same color and same shape) thank you! QUESTION 15 What does the following code
question 15 to 19
(for question 19 has to be the same color and same shape)
thank you!
QUESTION 15 What does the following code do, assume alex is a turtle? for aColor in ['yellow". "red". "green, "blue", 'purple]: alex.colorjaColor) alex.forward(50) alex.left(72) Paragraph # Arial # 3(12pt) # :-.-'. T. HTHL CSS Path: P Words QUESTION 16 What's wrong with the following function definition? def average(x, y, z): return Cx y z)/3 print('The answer has been returned. ' TT Paragraph # Arial # 3(12pt) # - ,T, Path: p Words:o QUESTION 17 Define a function namod yoarsToHours, which converts years to the total number of hours and returns the hours. Assume there are 365 days in a yoar. Then write a program that prompt the user to enter the number of years, and call yearsToHours function to show the number of hours that the years have. Use a main function in your program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started