I'm trying to figure out the issue with this code. I'm coding in python. I want my condition to fail only when both statements are inside an array. Otherwise, I'm looking for this code to pass and print "Enter".
edge1 = []
edge2 = []
edge1.append("hello")
edge2.append("world")
if ("hello" not in edge1 and "bye" not in edge2):
print("entered")
Expected output: "entered"
Aucun commentaire:
Enregistrer un commentaire