Jul-31-2021, 12:31 PM
(Jul-31-2021, 12:23 PM)ndc85430 Wrote: Why did you think you needed the linemy_list = []
in the first place? All it was doing was creating a local variable calledmy_list
that was shadowing the function parameter, so that the function parameter was inaccessible.
because otherwise it wouldnt count as a list, but I just realized that the new_list thingy, because it has there My_list and i did there [] with stuff in it, it counts as list.
that thing is new to me, thanks :)
about the last thing of the question, adding the and magnesium.
if im doing new_list[-1] ill get: and boron ( of course, because new list is a other list with jumps of 2 ).
if ill try my_list, it wont work, because its not a variable.
what am i supposed to do now?
I tried to create a new variable of list and then modify it to have the last -1 of the my_list, but nothing seems to work.