Skip to content

Instantly share code, notes, and snippets.

@talhatugsat
Created March 23, 2022 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talhatugsat/ea72dcb924607ed105fe6c8bccd790a9 to your computer and use it in GitHub Desktop.
Save talhatugsat/ea72dcb924607ed105fe6c8bccd790a9 to your computer and use it in GitHub Desktop.
Mix String
import random
def mixString(strs: dict) -> str:
random.shuffle(strs)
mixed = ""
for str in strs:
mixed = mixed + str + " "
return mixed
print(mixString(["deneme", "mahalle", "ali", "veli"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment