Python Forum
zip() function does not work as expected
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
zip() function does not work as expected
#2
(Jan-31-2018, 04:47 PM)AyCaramba Wrote: Does the list(zipped) command in line 4 somehow destroy my zip object?
The zip object is an iterable. The expression list(zipped) consumes the iterable. There are no more items in zipped after this expression.
Reply


Messages In This Thread
RE: zip() function does not work as expected - by Gribouillis - Jan-31-2018, 05:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print doesnt work in a function ony 2 329 Mar-11-2024, 12:42 PM
Last Post: Pedroski55
  I dont know why my function won't work? MehHz2526 3 1,216 Nov-28-2022, 09:32 PM
Last Post: deanhystad
  time function does not work tester_V 4 3,091 Oct-17-2021, 05:48 PM
Last Post: tester_V
  write new function or change the old one to work "smartter? korenron 3 2,014 Aug-09-2021, 10:36 AM
Last Post: jamesaarr
  string function doesn't work in script ClockPillow 3 2,442 Jul-13-2021, 02:47 PM
Last Post: deanhystad
  Why does unpickling only work ouside of a function? pjfarley3 5 3,480 Dec-24-2020, 08:31 AM
Last Post: pjfarley3
  Please help my while loop does not work as expected KingKhan248 6 2,666 Sep-28-2020, 09:12 PM
Last Post: deanhystad
  Recursive function returns None, when True is expected akar 0 3,413 Sep-07-2020, 07:58 PM
Last Post: akar
  len() function, numbers doesn't work with Geany Editor Penguin827 3 3,034 May-08-2020, 04:08 AM
Last Post: buran
  Powerset function alternative does not work oClaerbout 1 2,012 Feb-11-2020, 11:34 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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