Inactive Member rMks Posted January 10, 2023 Author Inactive Member Share Posted January 10, 2023 5034 Link to comment Share on other sites More sharing options...
+ i n f e c t e d Posted January 10, 2023 Share Posted January 10, 2023 5035 Link to comment Share on other sites More sharing options...
Inactive Member rMks Posted January 10, 2023 Author Inactive Member Share Posted January 10, 2023 5036 Link to comment Share on other sites More sharing options...
+ i n f e c t e d Posted January 10, 2023 Share Posted January 10, 2023 5037 Link to comment Share on other sites More sharing options...
Inactive Member rMks Posted January 10, 2023 Author Inactive Member Share Posted January 10, 2023 5038 Link to comment Share on other sites More sharing options...
Dimo4ka Posted January 10, 2023 Share Posted January 10, 2023 from functools import reduce current_list = [5, 15, 20, 30, 50, 55, 75, 60, 70, 80, 90, 100] count_number = reduce((lambda x, y: x + y if int(sum(current_list)) > 5039 else 5039), current_list) print(count_number) # 5039 2 Link to comment Share on other sites More sharing options...
Inactive Member rMks Posted January 10, 2023 Author Inactive Member Share Posted January 10, 2023 5o4o Link to comment Share on other sites More sharing options...
Paul Elton Posted January 10, 2023 Share Posted January 10, 2023 5041 Link to comment Share on other sites More sharing options...
quEST Posted January 10, 2023 Share Posted January 10, 2023 5042 Link to comment Share on other sites More sharing options...
Inactive Member rMks Posted January 10, 2023 Author Inactive Member Share Posted January 10, 2023 5043 Link to comment Share on other sites More sharing options...
Paul Elton Posted January 11, 2023 Share Posted January 11, 2023 (edited) 1001110110100 Edited January 11, 2023 by Paul007 1 Link to comment Share on other sites More sharing options...
Dimo4ka Posted January 11, 2023 Share Posted January 11, 2023 7 hours ago, Paul007 said: 1001110110100 # binary number a = '1001110110100' print(int(a, 2)) # 5044 5045 1 Link to comment Share on other sites More sharing options...
Inactive Member rMks Posted January 11, 2023 Author Inactive Member Share Posted January 11, 2023 5046 Link to comment Share on other sites More sharing options...
+ i n f e c t e d Posted January 11, 2023 Share Posted January 11, 2023 5047 Link to comment Share on other sites More sharing options...
Paul Elton Posted January 11, 2023 Share Posted January 11, 2023 That's for you Dimo! "13B8" Link to comment Share on other sites More sharing options...
Recommended Posts