start = 100 end = 150 count = 0 for s in range(start, end): if str(s) == str(s)[::-1]: count += 1 print(count)
To embed this project on your website, copy the following code and paste it into your website's HTML: