mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-12-03 10:21:46 +01:00
Add user input for string reversal and delay before output
This commit is contained in:
1 parent
64ea54f086
commit
d5155c48b3
1 file changed
+6
-1
@@ -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 de omgekeerde string
|
||||||
print("Deez"[::-1]) # Output: "zeeD"
|
print(input_string[::-1]) # Output: "zeeD"
|
||||||
|
time.sleep(2)
|
||||||
Reference in new issue
Block a user