Skip to content

Instantly share code, notes, and snippets.

View HAKSOAT's full-sized avatar
🏗️
Building information retrieval systems...

Habeeb Shopeju HAKSOAT

🏗️
Building information retrieval systems...
View GitHub Profile
{
"tokens": [
{
"token": "As",
"start_offset": 0,
"end_offset": 2,
"type": "word",
"position": 0
},
{
def decorate_text(text):
decoration = "\n\n**********{}**********\n\n"
decorated_text = decoration.format(text)
return decorated_text
# Unpacking of values
def generate_multiplications_1(multiplicand, start, stop):
multiplications = []
for multiplier in range(start, stop + 1):
{{about|the programming language||Python (disambiguation)}}
{{Short description|General-purpose, high-level programming language}}
{{Use dmy dates |date=August 2015}}
{{Infobox programming language
| logo = Python logo and wordmark.svg
| logo size = 250px
| paradigm = [[Multi-paradigm programming language|Multi-paradigm]]: [[functional programming|functional]], [[imperative programming|imperative]], [[object-oriented programming|object-oriented]], [[structured programming|structured]], [[reflective programming|reflective]]
| released = {{start date and age|1990}}<ref name=guttag />
| designer = [[Guido van Rossum]]
| developer = [[Python Software Foundation]]
@HAKSOAT
HAKSOAT / sample.py
Created April 12, 2020 18:29
AI6 - Functions - Class 1
def generate_multiplications(multipicand):
if not (isinstance(multipicand, int) or isinstance(multipicand, float)):
return None
multiplications = []
for multiplier in range(1, 13):
answer = multipicand * multiplier
multiplications.append(answer)
return multiplications
"10 Downing Street"
"11 Downing Street"
"15 minutes of fame"
"1600 Pennsylvania Avenue"
"23 Skidoo Street"
"a bridge too far"
"a cold day in July"
"a day late and a dollar short"
"a good deal"
"a great deal"
"10 Downing Street"
"11 Downing Street"
"15 minutes of fame"
"1600 Pennsylvania Avenue"
"23 Skidoo Street"
"a (bridge too far|cold day in July|day late and a dollar short|good deal|great deal|hundred and ten percent|life of its own|little bird told me|little bit of bread and no cheese|little from column A, a little from column B|notch above|pound to a penny|Roland for an Oliver|short drop and a sudden stop|week from next Tuesday|week is a long time in politics|wild goose never laid a tame egg|woman without a man is like a fish without a bicycle)"
"above (one's bend|the curve|the law|the salt)"
"absence makes the heart grow fonder"
"abuse of distress"
"accident (of birth|waiting to happen)"
"ace in the hole"
"across the board"
"against the grain"
"airs and graces"
"airy fairy"
"albatross around (his|her|their) neck"
"all bark and no bite"
"all ears"
"all hat and no cattle"
"all piss and wind"