k=1000
n=0
suma=0
while k!=9999:
l=list(str(k))
if l[1]==l[3]:
n+=1
k+=1
print(n)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
k=1000
n=0
suma=0
while k!=9999:
l=list(str(k))
if l[1]==l[3]:
n+=1
k+=1
print(n)