I've loaded "reticulate" package to run python code in Rstudio. Below the code:
# Initialize an empty dictionary
D = {}
L = [['a', 1], ['b', 2], ['a', 3], ['c', 4]]
I get the following error:
Error: unexpected '[[' in "L = [["
Why did this happen?
No answers on Google helped me.