librejoe@lemmy.worldOPtoPython@programming.dev•Why can't I append to list inside of a list comprehension?
1·
10 days agoThanks for the response.
I am aware somewhat of what an array is, as i’ve dabbled with them in C, and know they can be multi-dimensional. Sorry if I’m being blind, but all I see are function calls in that list comprehension. I think what im asking is stupid, as the range function is returning a list populated.
Great explanation! I don’t know too much C, just a bit here and there, and my dad’s copy of K&R C he gave to me.