Created
March 23, 2022 02:16
-
-
Save talhatugsat/ea72dcb924607ed105fe6c8bccd790a9 to your computer and use it in GitHub Desktop.
Mix String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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