diff --git a/Python/omgedraaide string/string.py b/Python/omgedraaide string/string.py index fa5288f..8bdef89 100644 --- a/Python/omgedraaide string/string.py +++ b/Python/omgedraaide string/string.py @@ -1,2 +1,7 @@ +import time + +# Vraag de gebruiker om een string in te voeren +input_string = input("Voer een string in: ") # Print de omgekeerde string -print("Deez"[::-1]) # Output: "zeeD" \ No newline at end of file +print(input_string[::-1]) # Output: "zeeD" +time.sleep(2) \ No newline at end of file