Here is the complete explanation
import turtle
#Importing the Turtle library to draw using python
george = turtle.Turtle()
#Creates an object called George of class Turtle
george.setposition(0,100)
#Sets initial position of our turtle George to x=0 and y=100
george.pencolor('red')
#Sets the line colour of our turtle to Red
george.fill('red')
#Sets the fill colour to Red
george.begin_fill()
#Begin our colour fill
george.circle(-100,100)
#Create a semicricle with radius 100 adn angle 100
george.right(90)
#Rotates george to 90 degree right
george.forward(200)
#Moves george forward 200 steps
george.end_fill()
#Finish our fill
george.up()
#Lifts the turtle up - no drawing
george.right(90)
#Rotates george to 90 degree right
george.forward(25)
#Moves george forward 25 steps
george.right(90)
#Rotates george to 90 degree right
george.forward(50)
#Moves george forward 50 steps
george.left(90)
#Rotates george to 90 degree left
george.down()
#Puts the turtledown - drawing start
george.pencolor('white')
#Sets the line colour of our turtle to White
george.fillcolor('white')
#Sets the fill colour to White
george.begin_fill()
#Begin our colour fill
george.circle(-50,180)
#Draw a semicricle with radius 50
george.right(90)
#Rotates george to 90 degree right
george.forward(100)
#Moves george forward 100 steps
george.end_fill()
#Finish our fill
screen = george.getscreen()
#Get the screen of our turtle
screen.exitonclick()
#Exit that screen when clicked
Output:

Hope this solves the problem. Feel free to ask any queries in the comments.
Have a good day! :)
Hi y’all this is python 3.7 I am new so please explain how code works Untitled...
I cannot run this code! Please explain and fix it for me import turtle import random # Approximate size of turtle objects in pixels BODY_SIZE = 80 # Half if the body size for collision detection with the edge of the screen HALF_BODY_SIZE = BODY_SIZE / 2 # if enemies get this close to friend there is collision COLLISION_DISTANCE = 5 # The window size SIZE = 500 # inner boundary within window for reversing the direction of enemies LOWER_BOUND...
I need help with this code, I have it started here
import sys
import turtle
menu = "Press 1 for Flower"
UserChoice = input(menu)
#function to draw squares
def draw_square(square):
for i in range(0,2):
square.forward(100)
square.right(70)
square.forward(100)
square.right(110)
#function to draw flower
def draw_flower(petalNumber):
window = turtle.Screen()
window.bgcolor("yellow")
pen = turtle.Turtle()
pen.shape("triangle")
pen.color("red")
for number in range(0,petalNumber):
draw_square(pen)
pen.right(360/petalNumber)
for i in range(0,4):
pen.circle(20)
pen.right(90)
pen.right(90)
pen.forward(300)
pen.right(90)
draw_square(pen)
pen.left(180)
draw_square(pen)
pen.left(270)
pen.forward(200)
window.exitonclick()
#function for original art...
Please I need help in C language, I am trying to modify the code per the below instructions, but I am getting errors. Can't fgure it out. The attempted code modification and data file is privided below, after the instructions. Thank you. Instructions: 1. First, add a function named printMsg that displays a message, a greeting, or an introduction to the program for the user. Add a statement that calls that function from the main function when your program starts....
I need help with this assignment in C++,
please!
*** The instructions and programming style details
are crucial for this assignment!
Goal: Your assignment is to write a C+ program to read in a list of phone call records from a file, and output them in a more user-friendly format to the standard output (cout). In so doing, you will practice using the ifstream class, I'O manipulators, and the string class. File format: Here is an example of a file...