Python Forum
Please help in understanding this piece of code
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help in understanding this piece of code
#4
range always produces an output of type list. The xrange function on the other hand does not ;) But nevertheless if a list containing 3 lists or 3 range objects is given to np.array() they will be converted to lists and a normal array is made :)
Reply


Messages In This Thread
RE: Please help in understanding this piece of code - by ThiefOfTime - May-10-2018, 11:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with understanding the following code ClimbAddict 3 2,405 Oct-13-2019, 10:14 AM
Last Post: ClimbAddict

Forum Jump:

User Panel Messages

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