Answered step by step
Verified Expert Solution
Link Copied!

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!

image text in transcribedimage text in transcribed

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

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions