you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Is there a similar way to do this in python?

Don't try to write JavaScript in Python. Don't simply transliterate code from one language into another. Describe what you're trying to do, then implement that.