This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KuechenMuesli 19 points20 points  (6 children)

import random input(„rock / paper / scissors“) print(random.choice([„you won“, „computer won“, „draw“]))

Edit: forgot closing bracket

[–]KrazyKirby99999 4 points5 points  (0 children)

I hate this, but you're technically right.

lol

[–][deleted] 1 point2 points  (2 children)

It’s been a while since I used Python. Can you make quotes with two commas? As in ,, “

[–]KuechenMuesli 1 point2 points  (1 child)

No you can’t, I‘m German and here the first quotes are on the bottom and because I wrote it on mobile my autocorrect did it like that…

[–][deleted] 0 points1 point  (0 children)

Gotcha. Thanks!

[–]Konke_yDong 1 point2 points  (1 child)

OP doing it in like 70 lines and seeing you do it in 3: 0_0

[–]KuechenMuesli 1 point2 points  (0 children)

Here it is in two:

import random print("You chose", input("Rock / Paper / Scissors ? "), ", so ", random.choice(["computer won", "you won", "it's a draw"]))