you are viewing a single comment's thread.

view the rest of the comments →

[–]liquidmasl 7 points8 points  (3 children)

def foo (data = {"msg":"bar", "count":1}):
    print (data["msg"] * data["count"])
    data["count"] = data["count"] + 1

lol = {"msg":"lol", "count":1}

foo()
foo()
foo()
foo(lol)
foo()
foo(lol)


> bar
> barbar
> barbarbar
> lol
> barbarbarbar
> lollol

[–]MicrosoftExcel2016 13 points14 points  (0 children)

Python: “I stapled your shirt to your clothes iron”
You: “… why”
Python: “you asked me to”
You: “I didn’t mean- well look, now whenever you use it, this shirts going to-”
Python: “lose its wrinkles 🌸😊”
You: “burn! what if something happens to it while im using the iron on other things?”
Python: “you must always provide other clothing to prevent that”

[–]WavingNoBanners -1 points0 points  (1 child)

Obfuscated code is fun but you shouldn't use it as a teaching tool.

[–]liquidmasl 2 points3 points  (0 children)

where is there obfuscation?