Skip to content

Instantly share code, notes, and snippets.

@3rdAnimal
3rdAnimal / RPS.py
Created July 9, 2018 22:50
practicepython.org: Rock Paper Scissors
en_us_winning = [
"Rock OBLITERATES scissors!",
"Paper SMOTHERS rock!",
"Scissors EVISCERATES paper!"
]
en_us = [
"Rock, Paper, or Scissors?",
"Player",
"Enter choice",
"Invalid choice.",
@3rdAnimal
3rdAnimal / EvenList.py
Last active July 9, 2018 22:51
practicepython.org: List Comprehensions
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
b = [ num for num in a if num%2==0 ]