input() takes its input as a string, so there are two options:
1. use int(input()) instead
The downside is that you could get an error if the user enters an explicit string such as "pie"
To get around this, here's the full solution:
try:
i = int(input("What's the value of 2+3?\n"))
except:
print("Failed...")
else:
if i == 5:
print("Correct!")
else:
print("Failed...")
2. change 5 to a string
downside: it looks strange
here's the full code(it sort of gets around this issue)
i = input("What's the value of 2+3?\n")
if i == str(5):
print("Correct!")
else:
print("Failed...")