I was doing a simple mad libs game thing but I want to know if there's any more efficient or readable way to write the code as I don't know the best ways to structure code as I am just begginning. Before I write any more of them please can someone tell me if there's a "better" or more accpeted way to write any of the code like if I should make more things in to functions and how to do so. This is Python 3.6.6. The game is supposed to prompt the user to enter a random word of their choice (it has to be a certain type of word to make sense in the sentence like adjective or verb) and inputs the prompted words into a sentence so it's funny and doesn't make any sense
import random
print("<<<<<<<<<<<<<<<<<<<<<<<<< Mad Libs >>>>>>>>>>>>>>>>>>>>>>>>>")
adjective = []
noun = []
verb_pr = []
noun_p = []
verb_pa = []
verb = []
def nouns():
global noun
ans = input("Noun(singular):\n> ").lower()
noun.append(ans)
def nouns_p():
global noun_p
ans = input("Noun(plural):\n> ").lower()
noun_p.append(ans)
def adjectives():
global adjective
ans = input("Adjective:\n> ").lower()
adjective.append(ans)
def verbs_pr():
global verb_pr
ans = input("Verb(-ing):\n> ").lower()
verb_pr.append(ans)
def verbs_pa():
global verb_pa
ans = input("Verb(-ed):\n> ").lower()
verb_pa.append(ans)
def verbs():
global verb
ans = input("Verb:\n> ").lower()
verb.append(ans)
verbs_pr()
nouns_p()
nouns()
nouns()
verbs_pr()
nouns_p()
verbs_pa()
verbs()
nouns_p()
adjectives()
verbs_pr()
nouns_p()
verbs_pr()
random.shuffle(adjective)
random.shuffle(noun)
random.shuffle(verb_pr)
random.shuffle(noun_p)
random.shuffle(verb_pa)
random.shuffle(verb)
print("{3[0]} these {2[0]}, {1[0]} like a {1[1]}, I'm {3[1]} {2[1]} now, someone {4[0]} me do I {5[0]} {2[2]}, it's gonna be {0[0]}, {3[2]} {2[3]} that's what I'm {3[3]} about yeah".format(adjective,noun,noun_p,verb_pr,verb_pa,verb))
adjective = []
noun = []
verb_pr = []
noun_p = []
verb_pa = []
verb = []
verbs_pa()
nouns()
adjectives()
adjectives()
verbs_pr()
nouns()
verbs()
nouns_p()
verbs_pa()
nouns()
nouns()
nouns()
nouns()
adjectives()
nouns_p()
verbs()
nouns()
nouns()
adjectives()
nouns_p()
nouns()
nouns()
nouns()
verbs()
random.shuffle(adjective)
random.shuffle(noun)
random.shuffle(verb_pr)
random.shuffle(noun_p)
random.shuffle(verb_pa)
random.shuffle(verb)
print("""You have been {4[0]} into Hogwarts {1[0]} of {0[0]} and {0[1]}. You will be {2[0]} throughout the {1[1]} and will {5[0]} in the {3[0]}. You will be {4[1]} in one of the four houses.
{1[2]}, {1[3]}, {1[4]} or {1[5]} and will learn much about the {0[2]} {3[1]}. Once you arrive you will {5[1]} The Great {1[6]} for a feast with the headmaster, Proffessor
{1[7]}. You will need to get all the {0[3]} {3[2]} in {1[8]} Alley and get a {1[9]} from Ollivanders {1[10]} shop. We hope to {5[2]} you there.""".format(adjective,noun,verb_pr,noun_p,verb_pa,verb))