From 80b15b64ef0ee6417878b84e1afa1b7eadc4aadb Mon Sep 17 00:00:00 2001 From: Bit77 Date: Thu, 30 Oct 2025 20:48:47 -0500 Subject: [PATCH] Add files via upload --- Rifleman.py | 16 ++++++++++++++++ TURTLE.py | 39 +++++++++++++++++++++++++++++++++++++++ continue-example.py | 10 ++++++++++ 3 files changed, 65 insertions(+) create mode 100644 Rifleman.py create mode 100644 TURTLE.py create mode 100644 continue-example.py diff --git a/Rifleman.py b/Rifleman.py new file mode 100644 index 0000000..aeb7a23 --- /dev/null +++ b/Rifleman.py @@ -0,0 +1,16 @@ +######### RIFLEMAN? ########## +## Objective: Ask (user) ## +## are we going to watch ## +## Rifleman? ## +##--------------------------## +## Answers accepted: ## +## Yes/No ## +##==========================## +## Else: Sorry, invalid ## +## answer. ## +############################## + +#CODE BELOW + +print("finish code tomorrow") +#-- diff --git a/TURTLE.py b/TURTLE.py new file mode 100644 index 0000000..42b9ce9 --- /dev/null +++ b/TURTLE.py @@ -0,0 +1,39 @@ +### TURTLE.py ### +#-----Set 1-----# +#===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.pendown() diff --git a/continue-example.py b/continue-example.py new file mode 100644 index 0000000..077b392 --- /dev/null +++ b/continue-example.py @@ -0,0 +1,10 @@ +### continue-example.py ### +#DWN / 10/30/25 # +#=========================# + +n = 0 +while n < 10: + n += 1 + if n % 3 == 0: + continue + print(n)