#uses of python
Explore tagged Tumblr posts
lady-raziel · 5 days ago
Text
you know what perhaps strange women lying in ponds distributing swords IS a pretty solid basis of government actually
2K 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
182 notes · View notes
typecasto · 7 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:])))
191 notes · View notes
front-facing-pokemon · 10 months ago
Text
Tumblr media
232 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!
85 notes · View notes
english-history-trip · 2 months ago
Text
Tumblr media
83 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
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
vegetable-soup-wizard · 6 days ago
Text
Tumblr media
Post election mood
35 notes · View notes
cursedauxiliary · 13 days ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
Happy Halloween from THE COMPANY
Ft. 'TIS BUT A SCRATCH!
48 notes · View notes
paranoidgemsbok · 2 months ago
Text
related to my previous point but when horror movies use rats and mice as DIRTY SPOOKY RUNDOWN LOCATION but theyre the fattest little calm beasts with the shiniest coats youve ever seen
39 notes · View notes
witchering10123 · 29 days ago
Text
you can't tell me that the marauders wouldn't have LOVED monty python
25 notes · View notes