Even if the the if statement equals false it still executes the code inside the if statement. Here is the code:
# Imports:
import time
# Code Starts Here:
print("Welcome to a test application By: David(Toxicminibro)")
time.sleep(1.25)
Donald = "Donald Trump"
donald = "donald trump"
Hillary = "Hillary Clinton"
hillary = "hillary clinton"
name = input("What is your name?: ")
if name == Donald or donald or Hillary or hillary:
print("No. Stop it.")
else:
print("Hello " + name + " !")
Aucun commentaire:
Enregistrer un commentaire