Hey, I’ve been looking all over the internet but I can’t seem to find it. Is it possible to make Python code create a list? Note that this is made Python 2.
What do you mean by list?
Usually that word refers to the built-in type list, which is trivially created similar to numbers or strings. But if that’s what you mean then I can’t figure out why you’d need to ask, something else must be the real problem. Google for any python tutorial/reference, I guarantee they have a section on lists somewhere near the start.
built-in type list? I’m not sure what you mean. I’m saying something like:
if bananas = 30:
That’s incredibly vague.
What is a list?
What is a list? Isn’t there only two in Python 2, lists and dictionaries? I’m saying the one that looks like this: tree = [pine, spruce, maple]
Well, you created a list right there.