Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This program will create a glow-in-the-dark night sky-like doodle. The scene will have a moon, and clouds and stars as determined by the user.
This program will create a glow-in-the-dark night sky-like doodle. The scene will have a moon, and clouds and stars as determined by the user. 111 # (3) add functions here that your main program calls # to do stuff. import turtle as t import random width = 0 height = 0 ########### def get_dimensions(): # (1) replace pass with your code width = int(input ("Enter the width:")) height = int(input("Enter the height:")) #*****####*==========================# #Define the draw_cloud, draw_star functions # Define draw function def draw(width, height): t.bgcolor ("black") # Draw the stars # Draw the moon # Draw the clouds. get_dimensions() draw (width, height) t.mainloop()
Step by Step Solution
★★★★★
3.48 Rating (158 Votes )
There are 3 Steps involved in it
Step: 1
It looks like you want to create a Python program using the Turtle graphics library to draw a nightt...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