Python Forum
Function that separates a list in two other ones
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function that separates a list in two other ones
#3
(Dec-07-2017, 02:16 AM)Larz60+ Wrote: 80% of 12 is 9.6, therefore ([1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12]) is correct
well, under all math rules 9.6 would round to 10 and i guess that is why OP expects list with len 10 :-)

I also guess OP is using pythin2 thus / is actually floor division.
Reply


Messages In This Thread
RE: Function that separates a list in two other ones - by buran - Dec-07-2017, 07:07 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020