diff --git a/Main.py b/Main.py new file mode 100644 index 0000000..c57038e --- /dev/null +++ b/Main.py @@ -0,0 +1,70 @@ +# A Mad Lib is a fun, interactive word game where players fill in blanks with specific types of words +# (like nouns, verbs, adjectives, etc.) to create a humorous or surprising story. +# The structure of the story is pre-written, but key parts are left blank for the player to fill in +# without knowing the full context. Once all the blanks are filled, the story is revealed, +# often resulting in funny or unexpected outcomes. +from tabnanny import verbose + +# How it works: +# 1. The Setup: A short story is written with blanks where key words should be +# (e.g., the name of a person, a place, or an action). +# 2. Prompting for Words: The player is asked to provide words to fill in the blanks without knowing the full story. +# For example: +# - "Give me a noun." +# - "Give me an adjective." +# - "Give me a verb." +# 3. Creating the Story: Once all the words are filled in, they are inserted into the story's template, +# creating a unique and often humorous final story. + +# Example: +# Story Template: One day, a {adjective} {noun} decided to {verb} to the {place}. +# User Input: +# - Adjective: "happy" +# - Noun: "dog" +# - Verb: "run" +# - Place: "park" +# Final Story: One day, a happy dog decided to run to the park. + +# Assignment: +# Create a Python program that asks the user for various inputs and generates a fun Mad Lib story using +# input(), print(), and f-strings. + +# Deliverables: +# 1. Pick a Mad Lib from https://www.thewordfinder.com/wordlibs/. +# 2. Use the input() function to gather words from the user in the console and save them to variables. +# 3. Create a template using your chosen Mad Lib and generate a fun story using f-strings to print the final result. + + + +#Madlib Assignment + +number = input("Enter a grade year."), +adjective1 = input("Give me an Adjective!"), +adjective2 = input("Give me another adjective!"), +adjective3 = input("Give me an adjective!"), +name1 = input("What is your frend's name?"), +name2 = input("What is your other friend's name?"), +noun1 = input("Give me a noun?"), +plural_noun = input("Give me a plular_noun!") +noun2 = input("Give me a noun!"), +noun3 = input("Give me a noun!"), +noun4 = input("Give me a noun!"), +verb = input("Give me a verb!"), +adjective4 = input("Give me an adjective!"), + +print(f"Today was my first day of input{number} grade."), +print(f"My teacher is ms.. She seems{adjective1} and {adjective2}."), +print(f"I think her class will be pretty {adjective3}."), +print(f"My friends {name1} and {name2} are also in my class."), +print(f"We messed around during class by hiding {noun1} in peoples'{plural_noun} and asking questions about {noun2}") +print(f"The teacher got really {noun3} at us and told us that we have to go to the {noun4}."), +print(f"This just made us {verb} more. It was a {adjective4} first day of school.!") + + + + + + + + + diff --git a/README.md b/README.md index ce018d4..d785da9 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,22 @@ -# Project Title +# Mad Lib Fork Project -One Paragraph of project description goes here. +This is a program called Mad Lib which allows user to respond to program prompts by entering requested information. The users will enter numbers, nouns, pro-nouns, adjectives, verbs, and adverbs. For example, the program will prompt the user to enter a “noun” after which another prompt will appear to enter another word. Once all requested the program will stop. At the end of the exercise, the program will reveal the completed story which includes all the words and numbers entered by the user. ## Getting Started -These instructions will [do something] on your local machine for [development/experimentation/demo]. +These instructions will allow the user to install the appropriate PyCharm on their local machine. Once PyCharm installed, the user will locate the Main.py program on their machine and run it in the PyCharm console as a demo. ### Prerequisites -[Project] requires [software and version] to run, with [additional packages, libaries, or mods]. The commands below will [upgrade OS and install the prerequisites, or do something else] +My Readme Project will require PyCharm Version: 2024.2.3 to run. Visit the website following the link below. Click the Download button on the upper right corner. Scroll down to the bottom of the page and choose the free PyCharm Community Edition. Choose the appropriate program for your operating system. +PyCharm Community Edition. +Click the link: https://www.jetbrains.com/pycharm/ -``` -sudo apt update -sudo apt upgrade -sudo apt install python3 -``` ## Running -Once installed you can run the program with the following command -``` -python cne_demo.py -``` +Once installed, open the preferred program, and locate the program (Main.py) on your machine. The code will be visible on the screen. Start running by clicking the play button on the upper right corner of PyCharm. The console at the bottom half will prompt the user to enter words. Once all complete, the prompts will stop, the full paragraph will appear. -Add any additional ways to run the program below - -``` -python cne_demo.py test.txt -``` ## Thanks -Provide thank yous and attributions here. If someone helped you, you looked at another repository, or another article, provide it here. +None.