Excuse Generator
ElijahChen1 (134)

Very simple generator for excuses. Buggy but kind of funny
Every excuse has 4+ random words used

You are viewing a single comment. View All
eekboi (62)

Hey, ive been trying out some code that you used in your excuse generator. im gonna copy/paste it here. My error i keep getting is a callback from line 8 of my code. It cant identify what random means, is there anything necessary that i didnt do?

eekboi (62)

@eekboi print("1.")
QuestionOne = int(input())
if QuestionOne == 1:
print("Name of thing")
thing = str(input())
Atestlist = ("Atest1" "Atest2" "Atest3" "Atest4" "Atest5" "Atest6" "Atest7" "Atest8" "Atest9" "Atest10")
Btestlist = ("Btest1" "Btest2" "Btest3" "Btest4" "Btest5" "Btest6" "Btest7" "btest8" "Btest9" "Btest10")
Atest = random.choice(Atestlist)
Btest = random.choice(Btestlist)
if QuestionOne == 1:
print("Number 15 burgerking foot lettuce", thing.upper(), "One", Atestlist.upper, "Two", Btestlist.upper)

Thecrowbar1234 (63)

@eekboi Have you imported the random function?

eekboi (62)

@Thecrowbar1234 Yup at line one of my code import random

eekboi (62)

@Thecrowbar1234 yes, as I said at the start of my code i typed import random

eekboi (62)

@Thecrowbar1234 atleast you tried. Thanks!

ElijahChen1 (134)

@eekboi I might be able to help - can you paste the entire script so I can analyze it in full?

eekboi (62)

heres a screenshot of the code in a correctly formatted form