What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-11 23:48:22
modules in python
#use import statement to import modules import random r = random.randint(1,10) #use from-import statements to import functions from random import randint r = randint(1,10) #use from module import * statement to import all functions from random import * r ... Add solution -
Python 2021-11-03 21:30:13
roll dice python
from random import randint def roll_dice(): print(f"Number is: {randint(1,6)}") # Do this to simulate once roll_dice() # Do this to simulate multiple times whatever = 12 # Put the number of times you want to simulate here for number in... Add solution -
Python 2021-10-23 07:37:13
python snakes and ladders
#Heres a snakes and ladders game I made, felt the need to share it so others could play it too import tkinter as tk from time import sleep from random import randint root = tk.Tk() Grid = [] for i in range(8): GridRow = [] for j in range(8): Gr... Add solution
Best helpers
Ranking is empty