Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyperclip
- miror = {
- "R": "L'",
- "L": "R'",
- "U": "U'",
- "U'": "U",
- "D": "D'",
- "D'": "D",
- "F": "F'",
- "F'": "F",
- "R'": "L",
- "L'": "R",
- "L2": "R2",
- "R2": "L2"
- }
- while True:
- algorithm = input("Geben sie den Algorithmus ein, welcher zu spiegel ist: ").split(" ")
- for i in range(len(algorithm)):
- if algorithm[i] in miror:
- algorithm[i] = miror[algorithm[i]]
- print(algorithm)
- save = " ".join(algorithm)
- print("-"*40)
- print(save)
- print("-"*40)
- pyperclip.copy(save)
Advertisement
Add Comment
Please, Sign In to add comment