Start Input number If number mod 2 equals 0 Display “Even Number” Else Display “Odd Number” End If Stop
number = int(input("Enter a number: "))
if number % 2 == 0:
print("Even Number")
else:
print("Odd Number")
Odd Number
Start Input text Set reversed_text to empty string For each character in text Prepend character to reversed_text End For Display reversed_text Stop
text = input("Enter text: ")
reversed_text = ""
for char in text:
reversed_text = char + reversed_text
print(reversed_text)
trom