Step 1 of 3
You're building a Python program that takes a name and generates a random personalised roast. No fixed lines β every roast is assembled from list fragments.
Copy the starter code into the editor below and run it a few times before changing anything.
π¦ Variables π Lists π² random π₯ input()
import random name = input("Enter a name: ") starters = ["Listen up,", "Okay so,", "Not to be rude but,"] middles = ["your fashion sense", "your Roblox skills", "your taste in music"] endings = ["needs serious help.", "is actually painful to witness.", "made my eyes water."] roast = random.choice(starters) + " " + name + ", " + random.choice(middles) + " " + random.choice(endings) print(roast)
Questions to think about:
random.choice() actually do?π Lists π Strings
Replace every string inside the three lists with your own roast lines. The code structure stays exactly the same β only what's inside the lists changes.
Rules:
"your vibe" + " is painful to witness.")Example of what finished lists might look like:
starters = ["Look,", "I'm not saying,", "Okay but,", "Honestly,", "Not to be dramatic but,"] middles = ["your haircut", "your playlist", "your Roblox avatar", "your entire vibe", "your sense of humour"] endings = ["is a cry for help.", "really didn't have to go that hard.", "made me physically cringe.", "is beyond saving.", "needs a complete reset."]