🌀What is wrong with the following python code snippet

#▪️▪️▪️
l =["c"
"py",
"js"
]
#▪️▪️▪️

We missed the comma after "c". The python will concatenate it with py. Resulting in ["cpy","js"].

#python #pythontips #pythonprogramming #Python3

Follow

@RecursiveNeuron That looks like a bit of syntatic sugar that might cause more pain than it relieves.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.