Refactor user prompts and remove unnecessary comments in string reversal and palindrome scripts

This commit is contained in:
vista-man
2025-01-28 13:39:40 +01:00
parent d5155c48b3
commit aecf610e9c
2 changed files with 4 additions and 6 deletions

View File

@@ -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)