Skip to content

Commit ca7a20f

Browse files
committed
refactor method signature
1 parent d3bbce8 commit ca7a20f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rock-paper-scissors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ def bot_choice():
1414
return random.choice(["r", "p", "s"])
1515

1616

17-
def format_choice(c):
18-
if c is "r":
17+
def format_choice(choice):
18+
if choice is "r":
1919
return "Rock"
20-
elif c is "p":
20+
elif choice is "p":
2121
return "Paper"
22-
elif c is "s":
22+
elif choice is "s":
2323
return "Scissors"
2424

2525

0 commit comments

Comments
 (0)