In Computer Programming; 1 + 1 = …
class A(int):
def __add__(self, value):
return int(str(self) + str(value))
class Bee: | |
def __str__(self): | |
return "🐝" | |
class Dog: | |
def stepped_on(self, something): | |
... | |
if isinstance(something, Bee): | |
raise SystemExit("😱🥴") |
def shortenize(words: str): | |
""" | |
>>> shortenize("Causses et Vallée de la Dordogne") | |
"Cauvaldor" | |
""" |
""" | |
Compute and display the Earth-Mars distance in light-seconds, light-minutes | |
and kilometers. | |
The easiest way is to install both ``skyfield`` & ``skyfield-data`` to compute | |
this: | |
$ pip install skyfield skyfield-data | |
You can also install `skyfield` only, but it'll force you to download the |
// go on you labels pages and paste this script in your console | |
var labels = []; | |
[].slice.call(document.querySelectorAll(".label-link")) | |
.forEach(function(element) { | |
labels.push({ | |
name: element.textContent.trim(), | |
// using style.backgroundColor might returns "rgb(...)" | |
bgcolor: element.getAttribute("style") | |
.replace("background-color:", "") | |
.replace(/color:.*/,"") |
I hereby claim:
To claim this, I am signing this object:
Source: article from The Guardian
from itertools import permutations
Find a 9 letter string of characters that contains only letters from
acdegilmnoprstuw
such that the hash(the_string) is
910897038977002