#uses of python
Explore tagged Tumblr posts
lady-raziel · 19 days ago
Text
you know what perhaps strange women lying in ponds distributing swords IS a pretty solid basis of government actually
3K notes · View notes
poorly-drawn-mdzs · 4 months ago
Text
Tumblr media
MDZS x Brazil (1985)
(Yes. Real movie dialogue)
1K notes · View notes
jolinarofmalkshur · 2 years ago
Text
13K notes · View notes
botreetech · 2 years ago
Link
0 notes
mspaintpetfinder · 5 months ago
Text
Tumblr media Tumblr media
Gilgamesh
183 notes · View notes
typecasto · 8 months ago
Text
Hello tumblr i have made the fucking python program ever
it is a recursive descent parser written in a single expression. i didn’t use any tricks or tools or ai to write it, i just wrote the whole thing by hand because there’s something wrong with me.
fun facts:
- it is 2473 characters long
- part of it involves a dictionary whose keys and values are both lambda functions
- that part also involves a lambda function that takes a lambda function as a parameter and returns another lambda function
- the word lambda is used 31 separate times
- there is a lambda function with 10 different parameters (all of which are lambda functions)
- i really like lambda functions :)
(lambda factor, term, simpleExpression, expression, selector, designator, assignment, writeStatement, statement, statementSequence: print("Invalid" if (s:="".join(__import__("sys").stdin.readlines()).split())[-1] == ";" or statementSequence(s)!=[] else "Correct!"))((lambda _isident: (lambda ts: False if len(ts) == 0 else next(filter(lambda v: v is not None, map(lambda kv: kv[1]() if kv[0](ts[0]) else None ,{ (isfullint:=lambda _isint: lambda tMaybePlus: _isint(tMaybePlus[1:]) if tMaybePlus[0] in "+-" else _isint(tMaybePlus))((isint:=lambda t: len(t) >= 1 and all(map(lambda c: c in "0123456789", t)))): lambda: (ts[1:]), (lambda t: len(sp:=t.split("."))==2 and isfullint(sp[0]) and isint(sp[1])): lambda: ts[1:], (lambda t: len(t) >= 2 and t[0]=='"' and t[-1]=='"' and all(map(lambda c: c not in '" \t\n"', t[1:-1]))): lambda: ts[1:], _isident: lambda: (ts[1:]), (lambda t: t == "("): lambda: (False if len(ts) < 3 or (p:=expression(ts[1:])) == False or p[0] != ")" else p[1:]), (lambda t: t == "~"): lambda: (False if len(ts) < 2 or (p:=factor(ts[1:])) == False else p), }.items())), False)))(isident:=lambda t: len(t)>=1 and t[0] in (alphabet:="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") and all(map(lambda c: c in alphabet or c in "0123456789", t[1:])) and t != "WRITE"), (lambda ts: False if (p:=factor(ts)) == False else term(p[1:]) if len(p) >= 2 and p[0] in ["*", "/", "AND"] else p), (lambda ts: False if (p:=term(ts)) == False else simpleExpression(p[1:]) if len(p) >= 2 and p[0] in ["+", "-", "OR", "&"] else p), (lambda ts: False if (p:=simpleExpression(ts)) == False else simpleExpression(p[1:]) if len(p) >= 2 and p[0] in["<", ">", "=", "#"] else p), (lambda ts: selector(ts[2:]) if len(ts) > 2 and ts[0] == "." and isident(ts[1]) else selector(p[1:]) if len(ts) >= 3 and ts[0] == "[" and (p:=expression(ts[1:])) and p[0] == "]" else ts), (lambda ts: False if len(ts) < 1 or not isident(ts[0]) else selector(ts[1:])), (lambda ts: False if len(ts) < 3 or (p:=designator(ts)) == False or len(p) < 2 or p[0] != ":=" or (p2:=expression(p[1:])) == False else p2), (lambda ts: False if len(ts) < 4 or ts[0] != "WRITE" or ts[1] != "(" or (p:=expression(ts[2:])) == False or p[0] != ")" else p[1:]), (lambda ts: False if len(ts) < 3 else writeStatement(ts) if ts[0] == "WRITE" else assignment(ts)), (lambda ts: [] if len(ts) == 0 or ts == [";"] else False if (p:=statement(ts)) == False or (len(p) > 0 and p[0] != ";") else statementSequence(p[1:])))
192 notes · View notes
front-facing-pokemon · 10 months ago
Text
Tumblr media
233 notes · View notes
lupinus-bicolor · 1 month ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
actually ignore my last stamp dump, I had to correct some of the frames. behold! the new and improved "random favorite movies" stamp dump!
93 notes · View notes
english-history-trip · 2 months ago
Text
Tumblr media
85 notes · View notes
vegetable-soup-wizard · 20 days ago
Text
Tumblr media
Post election mood
54 notes · View notes
marlynnofmany · 1 year ago
Text
An interesting journey of discovery
So first I stumbled upon this from Ultrafacts:
Tumblr media
Well THAT’S interesting. Some googling confirmed it: John Cleese talked in an interview about when he learned of this in school -- his English teacher seemed to have come away with the impression that “If you didn't give up, you couldn't lose.” And that led to “It’s just a flesh wound!!!” years later.
Then I checked Wikipedia for the wrestler they were talking about, and was brought up short by this image:
Tumblr media
I know that statue, I thought. I’ve seen it with wings.
And I wasn’t wrong.
Tumblr media
  Yup, it’s the same one! Different angle, but same pose.
Tumblr media
  So that’s amazing. Monty Python, ineffable stubbornness, and naked wrestling.
I’m not sure what conclusion to draw from this, but I’m sure there are several.
501 notes · View notes
snakebonewitch · 10 days ago
Text
Tumblr media
Rebekya likes to think her self quite deft at debate.
50 notes · View notes
urfavedumbcunt · 3 months ago
Text
Tumblr media
Kimchi’s clown antics for today include:
-not letting me put him back after picking him up to spray under his favorite hide+also spray him even though he’s in blue and he can’t see anything and literally every snake resource ever is like “don’t handle your snake during the shed process”, he said “handle me :)))))”
-resting into my arm and flicking his tongue in a content way against the same spot until i called him out for being weird, at which point he stopped like a dog who’s owner told it to stop licking
-hanging off of my arm like he thinks he’s a tree snake while he still can’t see !!!!!! Not trying to go anywhere, just hanging until my arm burned from holding in place for him !!!!!
I love that Kimchi feels so safe and comfortable and knows I won’t let him get hurt but like,, unhand me sir i just wanted u to be sufficiently wet i didn’t want to hang out 😭
56 notes · View notes
hollymacycomic · 1 year ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
Holly & Macy and Everyone Else
Chapter 4: Page 39
Start at the Beginning | About the comic | Tip-jar 
🌘 Support the comic & read the next page now on Patreon! 🌘
212 notes · View notes
freyaswolf · 18 days ago
Text
Tumblr media
"in retrospect, strange women lying in ponds distributing swords really might've been a better basis for a system of government."
35 notes · View notes
wishchip106 · 4 days ago
Text
i’m bored
ready player one cherik au what do people think??
listening to Blue monday - new order makes me think of that one scene where they’re in the club
imagine charles hiding his disability on the oasis and then when cherik meet irl charles is like “sorry for kinda catfishing you 😔” then eriks like “lol idc ur still hot”
it’d be kinda like what that artemis person did (i forgot her real name) but also its just a really stupid way to go “ur beautiful despite having defects 😢💔” idk man
i need to rewatch/reread both the movie and book they’re both good
cheriks online names being Magneto and Professor_X
if someone wanted to use this idea to write a fic or draw art i’d be very happy but not pressuring anyone just need to get this idea out of my head
hrmm cherik doing disco dancing in midair heheheh
37 notes · View notes