Skip to content
← Back to Community
Helppp! My code isnt working!
Profile icon
XxBlueShimmerxX

My code for my truth or dare game isnt working. Please help!

Voters
Profile icon
XxBlueShimmerxX
Comments
hotnewtop
Profile icon
FloCal35

Well 1st, this is supposed to be in the ask section. Second, you have no quotaion marks. Third, your if statements are set up wrong.

td=input("choose truth or dare- ") if td=="truth" color=input("what is your favorite color) print("Your favorite color is",color) else: print("Steal your sisters things, otherwise your friends")

Please revisit python or learn it if you haven't already

Profile icon
FancyGiraffe

Unfortunately, making a game is a bit more complicated than 3 lines of code. You can check out this truth or dare game I made right here: https://replit.com/@JackNorwood/Truth-or-Dare?c=175740
You may dissect to your own comfort.