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
  • 323
  • 1
  • 2
  • 10

0 Answers0