0

I am just simply trying to compare 3 characters two are given and second is retrieved from variable a

Any ideas?

a=":-O"
print a[2]
if a[2]== ")" or "D":
    print "Same"
else:
     print "Not same"
Bob
  • 347
  • 2
  • 3
  • 12

0 Answers0