I am on “Python code challenges: Lists”
Append Size
First I didnt find the solution to task 1, ended up clicking “View solution”.
Then I tried to “copy” the answer, and just write it myself. Did so, syntax error.
Clicked on “View solution”, ctrl+c, restarted task, ctrl+v; It works
Write on my own again, above each line so I can see the exact line of code while writing. Syntax error.
How is this possible??
This is the solution
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #Write your function here
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Again. When I write the code exactly like the solution, I get syntax error:
Some fonts should just not be used when coding, particularly those which don’t easily distinguish characters like this. The problem is that variable should’ve been the lower case of LST, not 1ST. So “lst” not “1st” like “list” with the letter I removed. In Python you can’t start variable names with a number so a syntax error is thrown when you try.