Add user input for string reversal and delay before output

This commit is contained in:
vista-man committed 2025-01-28 13:34:27 +01:00
1 parent 64ea54f086
commit d5155c48b3
1 file changed
+6 -1
+6 -1
View File
@@ -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"
print(input_string[::-1]) # Output: "zeeD"
time.sleep(2)