text: I'm checking if two strings a and b are permutations of each other, and I'm wondering what the ideal way to do this is in Python. From the Zen of Python, ...
  a
  b
  I'm trying to make a glob-like expansion of a set of DNA strings that have multiple possible bases.
  The base of my DNA strings contains the letters A, C, G, and T. ...
  Suppose I have 4 words, as a string.
  How do I join them all like this?
  s = orange apple grapes pear
  "orangeapple/orangegrapes/orangepear/applegrapes/applepear/grapespear/orangeapplegrapes/orangeapplepear/applegrapespear"
  list_words = s.split(' ')
  for l ...
  I want to remove a character from a string in permutation....
  Let us say that I have a function
  def (string,char):
  # remove char from string
  aAabbAA
  I'm writing a computer program to play the word game "Ghost."
  Here's how the current programs works:
  --User selects a letter (right now it only works if the user ...
  I have a string of letters that I'd like to split into all possible combinations (the order of letters must be remain fixed), so that:
  s = 'monkey'
  combinations = [['m', 'onkey'], ['mo', ...
  I'm new to posting here but have found SO to be an amazing resource recently helping me trying to pick up programming again!:-D
  My current problem is, I have been trying ...
  In Python, I am using list(itertools.permutations("0123456789")), and I am receiving (I as expected) a list of tuples of singled character strings.
  Is there a way to turn that result into a list ...
  list(itertools.permutations("0123456789"))
  I am trying to create a program to generate all possible capitalization cases of a string in python. For example, given 'abcedfghij', I want a program to generate:
  Abcdefghij
  ABcdef..
  .
  .
  aBcdef..
  .
  ABCDEFGHIJ
  And so on. I ...
  I need to work out a list of all possible permutations of case only in python
  for example with input of ar it would return
  [ 'ar','Ar','aR','AR']
  or arc
  [ 'arc','Arc','ARc','aRc','aRC','ARC'] and I know there ...
  Help i'm trying to descramble a file using a permutation as a key,i know how to scramble it but i need to create a function to descramble it back to what ...
  I have a string. I want to generate all permutations from that string, by changing the order of characters in it. For example, say:
  x='stack'
  l=['stack','satck','sackt'.......]
  def permut(word): myList = [] if len(word) == 1: myList.append(word) else: for ndx in range(len(word)): newList = [(word[0:ndx] + word[ndx+1:len(word)])] ...