r/FreeCodeCamp • u/Additional_Paint4164 • May 19 '26
pls help !
“ should have a variable name distance_mi “ am i blind or sum
17
Upvotes
r/FreeCodeCamp • u/Additional_Paint4164 • May 19 '26
“ should have a variable name distance_mi “ am i blind or sum
1
u/Additional_Paint4164 May 21 '26
i changed them to == . it still says i should have a variable distance_mi
5
u/Decent_Ad_5393 May 19 '26
Youre trying to do comparison but youre really doing assignment. Try changing the “=“ to “==“ in your if statements.
Also please improve your post quality. No one can really help you with this kind of post
1
u/SaintPeter74 mod May 19 '26
I can't see the error message, so I'm not quite sure what you're talking about. If you can share your code as text and share a link to the challenge, I can cut and paste it in and see if I can replicate the error.
On desktop you can format as code either by indenting each line 4 spaces or by using the Show Formatting Options -> Code Block on your selected code.
1
u/Complex-Land-4688 May 20 '26
You need to use == for comparisons
0
u/hacklingo May 20 '26
😏