+ 1
If you want to get the value of an indexed character in a string change str(x).index(str(0)) == str(y).index(str(0)): to x = 123 y = 567 if str(x)[0] == str(y)[0]: # there are a number of other issues preventing your code running. # feel free to experiment with the example below to learn a bit more # about your options to develop your code. https://code.sololearn.com/cY6lx0cet068/#py
8th Feb 2018, 9:26 PM
richard