added print-out

main
Thore 2023-04-11 12:27:48 +02:00
parent a319de72cc
commit 83caac6cac
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ if __name__ == "__main__":
# 5.4
def remove_duplicates(word: str):
return "".join(sorted(set(word), key=word.index))
remove_duplicates("Donaudampfschiffahrtsgesellschaftsstewardess")
print(remove_duplicates("Donaudampfschiffahrtsgesellschaftsstewardess"))
# 5.5
nums = [[1, 2, 3], [2, 1, 3], [4, 0, 1]]