Skip to content

Breakout Room 13 - Implementing Mad Libs Generator#14

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

Breakout Room 13 - Implementing Mad Libs Generator#14
anselrognlie wants to merge 1 commit intomainfrom
Breakout-Room-13

Conversation

@anselrognlie
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Collaborator

@RenaSpb RenaSpb left a comment

Choose a reason for hiding this comment

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

Nice work!
Please check my small suggestions

Comment thread main.py
@@ -1 +1,23 @@
#Mad Libs Generator Project
//Loop back to this point once code finishes
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

In Python comments should starts from # instead of //

Comment thread main.py
// 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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

"seond_noun" here is typo in word "second"

Comment thread main.py
print ("Well it is.")
print ("------------------------------------------")
// Loop back to "loop = 1"
loop = loop + 1
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If you want to back to "loop = 1", then loop should be equal 1, not loop + 1

Comment thread main.py
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is better to use f-strings
print(f"Be kind to your {noun} - footed, {plural_noun}")

Comment thread main.py
print ("------------------------------------------")
print ("Be kind to your",noun,"- footed", plural_noun)
print ("For a duck may be somebody's", seond_noun,",")
print ("Be kind to your",plural_noun,"in",place)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is better to use f-strings here also

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