What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-19 03:32:04
python code for rock paper scissors
import random game_list = ['Rock', 'Paper', 'Scissors'] computer = c = 0 command = p = 0 print("Score: Computer" + str(c) + " Player " + str(p)) # the loop run = True while run: computer_choice = random.choice(game_list) com... Add solution -
Python 2021-09-18 21:00:02
python safe password string generator
#This is giving you a password with 8 strings and 4 numbers: import random i=0 list=[] while i < 12: while i < 8: list.append(random.choice(string.ascii_letters)) i+=1 while i < 12: list.append(random.randint(0, 9... Add solution -
Python 2021-09-17 10:15:04
random word generator django
import random WORDS = ("python", "jumble", "easy", "difficult", "answer", "xylophone") word = random.choice(WORDS) correct = word jumble = "" while word: position = random.randran... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5
Xiaotian Pei
+5