# str = "Auto" # str02 = "Automatic" # # if str in str02: # print("yes") # else: # print("no") # # name1 = "Jasmine.qian" # name2 = "jasmine.qian" # if name1.lower() == name2.lower(): # print("yes") # else: # print("no") # dd = {'path': 'My Data / DS20880808_dataset_default / Gender', 'Female': '505', 'Male': '497', 'Unknow': '17'} dd2 = str(dd) print(type(dd)) print(type(dd2)) if dd2.__eq__(dd): print("yes") else: print("no") if dd.__eq__(dd2): print("yes") else: print("no") if dd2 == str(dd): print("yes") else: print("no")