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"
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"
