+ 7
The string, "abcdef" can be indexed ie. "abcdef"[2]=c, but the integer 123456 can not be indexed. In order to get the 3 rd num in 123456, you can convert it to string first as such. str(123456)[2] = 3
15th Feb 2018, 4:43 AM
Louis
Louis - avatar