Skip to content

Instantly share code, notes, and snippets.

@gormih
Last active October 14, 2019 06:38
Show Gist options
  • Save gormih/4f2594b48553f44c44ec7cf25a394c2b to your computer and use it in GitHub Desktop.
Save gormih/4f2594b48553f44c44ec7cf25a394c2b to your computer and use it in GitHub Desktop.
def s_p_s_result(my, enemy):
if my == enemy:
return 'Ничья'
elif (my, enemy) in [('Ножницы', 'Бумага'), ('Камень', 'Ножницы'), ('Бумага', 'Камень')]:
return 'Ты победил'
else:
return 'Я выиграл'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment