Replies: 4 comments 10 replies
|
Why can't dictionary be applied in this code? |
|
I completed the homework for rock, paper, scissors, using this code computer_choice=Label(text="computer_choice",width=62, height=6,bg="#52f5e8") def get_computer_choice(my_choice): winner=Label(text="Winner",width=40,bg="#5ff3d4") def king(human): def win(my_choice,machine_choice): def yay(chosen): def click(): def clank(): def clonk(): rock=Button(text="Rock",command=click,width=6,height=1,bg="#f03521",) paper=Button(text="Paper",command=clank,width=6,height=1,bg="#7af35f") scissors=Button(text="Scissors",command=clonk,width=6,height=1,bg="#5f94f3") app.mainloop() make a frame to each button that you pressedBut I used OpenAi for a little bit because I tried million times in clink clank clonk but it didn't work so I used OpenAi for a bit and it told me to make a function. And use config. |
|
So 1,2,5 functions work but I don't know what to do for 3,4,6. This is the code def add(): def refresh(): def delete(): def pick(): def count(): def leave(): while True: |
|
6 break, |
Uh oh!
There was an error while loading. Please reload this page.
sorry
All reactions