mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 02:57:05 +01:00
Add user input for string reversal and delay before output
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user