Python Forum
I have no clue whats wrong... - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: I have no clue whats wrong... (/thread-5314.html)



I have no clue whats wrong... - Jack_03 - Sep-28-2017

I have no clue what I've done wrong but its giving me trackback errors when I run the man player type, and I have no clue whats gone wrong can anyone give me some help?
Here is the code so far...

def main_man():
races1: ['Breton', 'Imperial', 'Nord', 'Redguard']
races1_choose == int(input('[0] Breton /n[1] Imperial \n[2] Nord \n[3] Redguard \nWhich racce are you? \n'))
print('Oh so your a man who is a', races1_choose ,'...')

def man():
print('Selected man...')
ok_1 = input('Are you ok with this choice? \ny/n \n')
if ok_1 == 'y':
main_man()
else:
game()

def mer():
print('Selected mer...')
ok_2 = input('Are you ok with this choice? \ny/n \n')
if ok_2 == 'y':
main_mer()
else:
game()

def beastfolk():
print('Selected beastfolk...')
ok_3 = input('Are you ok with this choice? \ny/n \n')
if ok_3 == 'y':
main_beastfolk()
else:
game()


def game():
race1: ['Man', 'Mer', 'Beastfolk']
race1_choose = input('[0] Man \n[1] Mer \n[2] Beastfolk \nWhat race type are you? \n')
if race1_choose == '0':
man()
if race1_choose == '1':
mer()
if race1_choose =='2':
beastfolk()

game()[/size]


RE: I have no clue whats wrong... - nilamo - Sep-28-2017

1) code tags help us actually see your code (they preserve whitespace).
2) If you're getting an error, share the error.  Otherwise, we're guessing what the problem is.  ...which is even harder when the code isn't runnable (which yours isn't).