Skip to content

Instantly share code, notes, and snippets.

@nielsdoorn
Created May 11, 2022 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nielsdoorn/8732c42b3f2ede793ef6de2e0c1995cf to your computer and use it in GitHub Desktop.
Save nielsdoorn/8732c42b3f2ede793ef6de2e0c1995cf to your computer and use it in GitHub Desktop.
An example of a MadLib Python exercise
v = input("Insert a verb:")
pn = input("Insert a plural noum:")
n = input("Insert a noun:")
a = input("Insert an adjective:")
print("\nWhether you "+ v+ "\n"
"computer programs to\n"
"solve "+pn+" or just\n"
"for "+ n+ ", it is very\n"
"important that you\n"
"ALWAYS TEST your code\n"
"for "+a+" bugs.\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment