A question about defining functions
from time import sleep as slp def print_with_slp(word): print(word + "1") slp(1) print(word + "2") slp(1) print(word + "3") slp(1) print(word + "4") slp(1) print(word + "5") spider1 = " |" spider2 = " |" spider3 = " _|" spider4 = '///\(o_o)/111' spider5 = "||| ` ' |||" print("Welcome to the drawer 0.6!") slp(2) print("Please tell me what would you like me to draw.") slp(2) while True: x = input("What do you want me to draw? =").lower() if x == "a spider": print_with_slp(spider) else: break slp(2) as you can see I defined a function. it would take the word I put in and will write it as print(word1), print(word2) etc. so I wrote spider in there so it will print(spider1) and print(spider2) etc so there will be a spider figure drawn. but it says spider is not defined?