mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 21:29:36 +01:00
Refactor user prompts and remove unnecessary comments in string reversal and palindrome scripts
This commit is contained in:
@@ -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