From b92e5a364d84cff9fe069ad7413b66e1954ca0bc Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:57:59 -0500 Subject: [PATCH] Add files via upload --- Madlibs.py | 24 ++++++++++++++++++++++++ TURTLE.py | 14 ++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 Madlibs.py diff --git a/Madlibs.py b/Madlibs.py new file mode 100644 index 0000000..fafd4ef --- /dev/null +++ b/Madlibs.py @@ -0,0 +1,24 @@ +############################################## +## MAD LIBS GAME +## The purpose of the following code +## is to create a fully functional +## MAD LIBS game. +## +## Hope you enjoy :) +## +############################################## + +NOUN = str(input("Please enter a noun): ")) + +ADJ = str(input("Please enter an adjective): ")) + +VERB = str(input("Please enter a verb): ")) + +NOUN2 = str(input("Please enter a noun): ")) + +print (NOUN, VERB) + +print ("to play outside every") + +print(ADJ, NOUN2) + diff --git a/TURTLE.py b/TURTLE.py index 1d0a4d4..42b9ce9 100644 --- a/TURTLE.py +++ b/TURTLE.py @@ -3,27 +3,37 @@ #===10/29/25====# ################# + + +# Concentric circles import turtle +# Named constants NUM_CIRCLES = 20 STARTING_RADIUS = 20 OFFSET = 10 ANIMATION_SPEED = 0 +# Setup the turtle. turtle.speed(ANIMATION_SPEED) turtle.hideturtle() +# Set the radius of the first circle radius = STARTING_RADIUS +# Draw the circles. for count in range(NUM_CIRCLES): - + # Draw the circle. turtle.circle(radius) + # Get the coordinates for the next circle. x = turtle.xcor() y = turtle.ycor() - OFFSET + # Calculate the radius for the next circle. radius = radius + OFFSET + # Position the turtle for the next circle. turtle.penup() - turtle.goto(x,y) + turtle.goto(x, y) turtle.pendown()