Python programming solution to a problem [Blue Bridge Cup official website DAY4 exam] [make] - Basic Training

The basis of the number of practice questions palindrome

Resource constraints
Time limit: 1.0s memory limit: 512.0MB
Problem Description
  1221 is a very special number, it is read and read from the right as from the left, seeking programming all such four-digit decimal number.
Output format
  output four decimal number satisfying the condition in ascending order.


for i in range(1,10):
    for j in range(0,10):
        print(i,end='')
        print(j,end='')
        print(j,end='')
        print(i,end='\n')


Published 545 original articles · won praise 129 · views 40000 +

Guess you like

Origin blog.csdn.net/weixin_43838785/article/details/104239467