x = 22
print (f"Sector {float(x)}: ",sum(([3]+[5,4,3,3,6,2,4,2,6,1]*(x//1))[:x-2]))
#sector3 (5) 39
#sector4 (4) 44
#sector5 (3) 48
#sector6 (3) 51
#sector7 (6) 54
#sector8 (2) 60
#sector9 (4) 62
#sector10 (2) 66
#sector11 (6) 68
#sector12 (1) 69
The number 12 does not comply because it gives me the result 74 which should be 69
The #12 that should add 1 does not do so
source https://stackoverflow.com/questions/75513739/how-can-i-assert-that-the-number-12-can-be-fulfilled
Comments
Post a Comment