What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-30 22:40:32
tqdm update with apply_async in multiprocessing
import time import random from multiprocessing import Pool from tqdm import tqdm def myfunc(a): time.sleep(random.random()) return a ** 2 pool = Pool(2) ''' for _ in tqdm(pool.imap_unordered(myfunc, range(100)), total=100): pass ''' pbar = t... Add solution -
Python 2021-11-15 22:32:18
instagram username checker
import requests import random import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) f = open("username_text_file.txt", "r") # create a text file with the usernames you want to check data = f.re... Add solution -
Python 2021-11-07 10:34:09
python how to generate random number in a range
import random # generates completely random number x = random.random() # generates a random int x = random.randint() # generates a random int in a range x = random.randint(1, 100) # NOTE: RANGE DOESN'T WORK FOR random.random() Add solution -
TypeScript 2021-11-03 15:35:15
generate random numbers in python within a range
import random # generates completely random number x = random.random() # generates a random int x = random.randint() # generates a random int in a range x = random.randint(1, 100) # NOTE: RANGE DOESN'T WORK FOR random.random() Add solution -
Python 2021-11-03 04:46:22
python webbot
# (A browser I created where you can load a url from the command line) # You can take this as your own if you want, it's pretty simple. import os import webbot import time import random from getkey import * typing_speed = 100 #wpm def slowprint(t): ... Add solution
Best helpers
Ranking is empty