Skip to content →

Tag: python

Creating Permutations of Strings in Python

The non-repeating permutations of the string “yes” are: There are always n! permutations, where n is the length of the string. To get all the permutations of a string in Python, you can use the itertools.permutations function.

Leave a Comment

Python pip eggs

Many Python applications I’ve seen define their dependencies in a file called requirements.txt. Sometimes these files have a line that looks something like this. I never really understood what #egg= means. The “egg” string is the directory that gets checked out as part of the install. Will, from Stack Overflow…

Leave a Comment