Jump to content

Recommended Posts

  • Inactive Member
Posted

5034

  • Platinum VIP
Posted

5035

  • Inactive Member
Posted

5036

  • Platinum VIP
Posted

5037

  • Inactive Member
Posted

5038

Posted
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
  • Haha 2
  • Inactive Member
Posted

5o4o

  • Inactive Member
Posted

5043

Posted
7 hours ago, Paul007 said:

1001110110100

# binary number
a = '1001110110100'
print(int(a, 2)) # 5044

 

5045

  • Surprise 1
  • Inactive Member
Posted

5046

  • Platinum VIP
Posted

5047

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.