Skip to content

Breakout Room 9 - Implementing Mad Libs Generator#10

Open
anselrognlie wants to merge 1 commit intomainfrom
Breakout-Room-9
Open

Breakout Room 9 - Implementing Mad Libs Generator#10
anselrognlie wants to merge 1 commit intomainfrom
Breakout-Room-9

Conversation

@anselrognlie
Copy link

No description provided.

@@ -1 +1,23 @@
#Mad Libs Generator Project
//Loop back to this point once code finishes
Copy link
Collaborator

@FloritaZhao FloritaZhao Apr 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using "#" instead of //

#Mad Libs Generator Project
//Loop back to this point once code finishes
loop = 1
while (loop < 9):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using "for _ in range(10)", so you don't have to manage extra loop variable

third_noun = input("Choose a noun: ")
// Displays the story based on the users input
print ("------------------------------------------")
print ("Be kind to your",noun,"- footed", plural_noun)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using f string in the print statement

// Displays the story based on the users input
print ("------------------------------------------")
print ("Be kind to your",noun,"- footed", plural_noun)
print ("For a duck may be somebody's", seond_noun,",")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - it should be second_noun, make the spelling consistent

Copy link
Collaborator

@FloritaZhao FloritaZhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider applying DRY principal in your logic structure

@FloritaZhao FloritaZhao reopened this Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants