What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-03 13:30:01
python roll dice 100 times graph results
import numpy as np import random import matplotlib.pyplot as plt def die_roll(rollnum, maxdots=6, ausgabe=""): all_rolls = np.random.randint(1, maxdots+1, size=rollnum) if "T" in ausgabe.upper(): i = 1 ... Add solution -
Javascript 2021-09-01 07:42:02
get all youtube playlist videos as json without api python
import urllib, json author = 'Youtube_Username' foundAll = False ind = 1 videos = [] while not foundAll: inp = urllib.urlopen(r'http://gdata.youtube.com/feeds/api/videos?start-index={0}&max-results=50&alt=json&orderby=published&author... Add solution