added print-out
parent
a319de72cc
commit
83caac6cac
|
@ -6,7 +6,7 @@ if __name__ == "__main__":
|
||||||
# 5.4
|
# 5.4
|
||||||
def remove_duplicates(word: str):
|
def remove_duplicates(word: str):
|
||||||
return "".join(sorted(set(word), key=word.index))
|
return "".join(sorted(set(word), key=word.index))
|
||||||
remove_duplicates("Donaudampfschiffahrtsgesellschaftsstewardess")
|
print(remove_duplicates("Donaudampfschiffahrtsgesellschaftsstewardess"))
|
||||||
|
|
||||||
# 5.5
|
# 5.5
|
||||||
nums = [[1, 2, 3], [2, 1, 3], [4, 0, 1]]
|
nums = [[1, 2, 3], [2, 1, 3], [4, 0, 1]]
|
||||||
|
|
Loading…
Reference in New Issue