mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-11-22 22:23:12 +01:00
Refactor user prompts and remove unnecessary comments in string reversal and palindrome scripts
This commit is contained in:
1 parent
d5155c48b3
commit
aecf610e9c
2 files changed
+4
-6
No files matched your search
@@ -1,7 +1,6 @@
|
||||
import time
|
||||
|
||||
# Vraag de gebruiker om een string in te voeren
|
||||
input_string = input("Voer een string in: ")
|
||||
# Print de omgekeerde string
|
||||
print(input_string[::-1]) # Output: "zeeD"
|
||||
|
||||
print(input_string[::-1])
|
||||
time.sleep(2)
|
||||
Reference in new issue
Block a user