Home > other >  python
python

Time:05-20

, o enter a six-figure sum, if you number is 36-45, the sum of the number of lucky Numbers,

CodePudding user response:

 (" data=https://bbs.csdn.net/topics/input & gt;>" ) 
If len (data)==6 and data. The isdigit () :
If 36 & lt;=sum (map (int, data) & lt;=45:
Print (f "{data} is lucky number!" )
The else:
Print (" data format is wrong!" )