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/continue-example.py b/continue-example.py index adf66c5..077b392 100644 --- a/continue-example.py +++ b/continue-example.py @@ -1,5 +1,5 @@ ### continue-example.py ### -## The3DP / 10/30/25 ## +#DWN / 10/30/25 # #=========================# n = 0 @@ -8,5 +8,3 @@ if n % 3 == 0: continue print(n) - -#NOTE: Will finish by 1/11/25 diff --git a/section3-week10-daren-neyland-multiplication-table.py b/section3-week10-daren-neyland-multiplication-table.py new file mode 100644 index 0000000..2ecc2f2 --- /dev/null +++ b/section3-week10-daren-neyland-multiplication-table.py @@ -0,0 +1,57 @@ +################################################################## +# Daren Neyland ## +# daren@markandtraci.com ## +# Intro to Python, Section 3 ## +# Version 1.0 ## +# section3-week10-daren-neyland-multiplication-table.py ## +# 9/4/2025 ## +# This program qill quickly access ## +# how quickly a bucket will overflow. ## +################################################################## + +##################### OBJECTIVE ################################# +## Write a program that uses nested loops to print +## a multiplication grid from 1 to 10. +## +## The outer loop should iterate through +## numbers from 1 to 10 (the rows). +## +## The inner loop should iterate through +## 1 to 10 (the columns). +## +## Print the product in a formatted grid. +## +## Example output: +## 1 2 3 4 5 6 7 8 9 10 +## 2 4 6 8 10 12 14 16 18 20 +## 3 6 9 12 15 18 21 24 27 30 +## … +## 10 20 30 40 50 60 70 80 90 100 +################################################################## + + + +user_input = input("Would you like too see the multiplication table? (y or n) ") + +if user_input == 'n': + print("Okay") +if user_input == 'y': + print("Great!") + print("Running multiplication table: ") + for a in range(1, 11, 1): #1-10 + for b in range(1, 10, 1): #1-9 + print("===", a, b, "===") + +mult_put = input("Would you like too see them multiplied? (y or n) ") + +if mult_put == 'y': + print("Awesome!") + print("===", a * b, "===") +if mult_put == 'n': + print("Okay... ") + + + + + +