Aug-30-2021, 05:21 PM
Your first assignment looks like you want a list with two elements. If so, it should look like below:
x = ['6048922', '334318']The construction
list['6048922', '334318']
is actually interpreted as a type hinting signature, almost certainly not what is intended. (Prior to python 3.9, this would have thrown a syntax error).