Skip to content

Instantly share code, notes, and snippets.

Last active February 9, 2019 00:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Analise combinatória, e remoção de repetições com strings
values = ["John","have","easy","pass"]
# Parse value
def parsing (x):
for i in x:
final = final + i
return final
# Normal
def mess (x):
lista = []
for i in values:
return lista
# Output
new = parsing(list(map(mess, values)))
print("---[Combinatories analysis]---")
print("---[Lenght for each values]---")
print("Root values:"+ str(len(values)))
print("Results: "+str(len(new)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment