0

Naming Variables

I can't understand what goes wrong with the variable [ user_id ]. Isn't user_id is a valid variable? To me it's valid because it doesn't start with NUMBER, doesn't include any SPACE or any other invalid characters I know. But system is showing it as an invalid variable. Please make me understand. Oh, third brackets are used just to highlight.

9th Mar 2025, 2:10 PM
Antony Dude
Antony Dude - avatar
4 odpowiedzi
+ 2
Antony Dude , sorry mate. You can share the code, you just need to copy it first and then go to the code playground and create a new code, then paste your copied code. It's not direct, but it is possible.
10th Mar 2025, 7:26 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Can you share your code as per this guide? Maybe there's something else. https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
9th Mar 2025, 3:35 PM
Ausgrindtube
Ausgrindtube - avatar
0
I can't share that code as it was from LEARN PYTHON in this Sololearn. Also as I am not a pro user, I couldn't check that explanation of the mistake. Thank you for your will to help.
10th Mar 2025, 4:37 AM
Antony Dude
Antony Dude - avatar
0
which course and what lesson? the only user_id I found is in a choose the correct answer type question and it worked fine without any anomaly.
10th Mar 2025, 6:06 AM
Bob_Li
Bob_Li - avatar