Vote count:
1
he to all!
I have this python code and I get compilation errors that I don't know how to fix. it supposed to be a switch code. can you tell me if it looks ok? what should I fix here?
def menu(x):
return {
'turnHead': 1, 'value'+turnHead(side)
'addFinger': 2,#compilation problem on ' do you know why?
1: addFinger(side)
2: if( addFinger(side)="right" or addFinger(side)="left"):
addFinger(Finger)
'removeFinger': 3,
1: removeFinger(side).
2: removeFinger(finger)
remove(removeFinger(side,Finger))
'def printRobot':4, print(help)
'exit':5,
}[x]
thank for any idea!
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire