This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
############## | |
def ebob(x,y): | |
while y: | |
r, x = x, y | |
y=r%y | |
return x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from timeit import timeit as _timeit | |
uzunluk = 10000 | |
orta = int(uzunluk / 2) | |
s_number = uzunluk | |
l_number = uzunluk | |
timeit = lambda code, number = 1000: _timeit(code, globals = globals(), number = number) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.request import urlopen, Request | |
from bs4 import BeautifulSoup | |
rootlink = 'https://www.transfermarkt.pl' # root link of website | |
link = 'https://www.transfermarkt.pl/schnellsuche/ergebnis/schnellsuche?query=' # our link, as you know | |
def create_request(url): # let me explain it below | |
req = Request( # we are creating a Request instance | |
url, # giving our 'url' | |
data=None, # this is not important for now :D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import importlib | |
import inspect | |
import sys | |
from stdlib_list import stdlib_list | |
MODULES = stdlib_list("3.8") | |
def gettype(x): | |
if inspect.ismodule(x): return "module" |
NewerOlder