python - Check sum in list comprehension -
Is it possible to check the number of digits in the same sense and if the outstanding amount is more than 50? Try
k = input ("input points different from the spaces"): (i) the issplit ()] in ValueError: print ("input only digits") The main thing is that it does not have to break the block with two, but to make it as simple as possible, make sure that the sum of the list is not more than 50.
for yoga ([int (i) k.split ()]) & Lt; = 50 and enter the code: >> : k = input ("input points different than spaces:"): claim yoga ) Except for value = error in KSplit ()]) for & (i): = 50 "Input only digits" except print "entry error": print "Number of digits is greater than 50" However I should say that I have found a bad design ...
Comments
Post a Comment