Screenshots, links, or other helpful context: when i type cancel i get the cancel text and the confirm text. i only want the cancel text when i type cancel. please help
if end == "cancel":
print("Please Press Run.")
if end == "Cancel":
print("Please Press Run.")
else:
print("Sucess! You are now checking in.")
if end == "cancel" or end == "Cancel":
print("Please Press Run.")
else:
print("Success! You are now checking in.")
This code achieves the same result by checking if end is equal to either “cancel” or “Cancel” and then printing the appropriate message. Please mark this as a solution if I was helpful!