#đź”’ C
122 messages · Page 1 of 1 (latest)
@sleek creek
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Do you know the difference between = and ==?
Yeah
You shouldn't need AI to tell you this. It's already underlined in the code
The error messages are hard to understand
What does it say?
I’ll have to open my pc and check but to prevent me using ai for debugging
Would u explain me the different types of errors
In the beginning, I would recommend asking here or googling if you have a specific error. Odds are, you're not the first person to run into that problem, and there's almost always an explanation of what went wrong
If there's a word in your error that you don't understand, then you can do a bit of research as well to try and learn what it means
you likely ran into a NameError in your code above
which is when you try and use a variable that has yet to be assigned
!e
print(x)
:x: Your 3.14 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | print([1;31mx[0m)
004 | [1;31m^[0m
005 | [1;35mNameError[0m: [35mname 'x' is not defined[0m
So whenever I get that error you’re telling about, I always need to check that case?
That applies to other Python errors too and its cases
Correct?
you will eventually see them enough times that you become familiar and can debug it yourself without looking it up
"what the error means" and "why your code caused it" can be two different things to work out
NameError means you didn't assign a variable. You thought you did, so you need to understand that trying to use == here does not work to assign a variable
Also, if you're new to python I recommend not using AI, it makes you think much less
I use it to teach me
Not the best resource out there, I recommend checking out the resources here instead
!learn
Here are the top free resources we recommend for people who are new to programming:
- Automate the Boring Stuff — an online book (also available to purchase as a physical book)
- Harvard’s CS50P course — video lectures (slides and notes provided) with exercises
- Python Programming MOOC 2026 course — text-based lessons with exercises
- Corey Schafer's YouTube playlist
For a full, curated list of educational resources we recommend, please see our resources page!
I recommend using the Python progamming MOOC 2026
That's the main issue, it removes the thinking part
It doesn’t if you learn and do the problems your self
Well if you solve them yourself then sure, but you've been debugging using AI
And it will surely miss stuff when teaching you.
Because i use ai to save time when i tried the problem my self and i cannot do anything else
Is it saving time tho?
In my opinion it's not
It's just another way to "cheat" your way into solving the problem
I guess that’s true
From my experience, the best thing you can do is actually sit and "break your head" on these type of problems
because that's when you actually learn
It's not that you can't do anything else, you just didn't try anything else
But if I do enough problems and when I do get stuck I could use ai to debug but I’ll still be able to increase my toolset
Let me give you a scenario
Whenever you get stuck you use AI to debug
you keep on doing that
but then you stumble upon a problem that AI doesn't manage to solve
What will you do now?
All the "toolset" you know is using AI to solve the problems
That's not the point..
If you'll use AI now, you won't acquire the skills necessary for debugging bigger problems in the future.
So what should I be doing instead
You mean, how do you solve problems when you're stuck?
Yes
Well, you could start by googling your errors
In your case it would've solved it
Another thing you could do, is open the python documentation
Another thing is actually debugging and viewing what happens in the code
Sure
And I did this much but I don’t think everything is right yet
Please send your code as text and not as images
you can wrap it in three ` from both sides to make it pretty
!code
Where is the preferences form?
It should be in the code
is it your_restaurants?
No
This is the server I’ve been working in
There is a form
If it's not the your_restaurants endpoint then I can't seem to find it.
It is your_restaurants...
Because u said form but that’s not a form
Its results page in other words
But yea
Alright
Now that I understand, what's the issue?
I see you haven't printed the matching restaraunts
Essentially I wanna complete this task
What's stopping you? Elaborate
Im tryna display the preferences on the route your_restaurants
According to ai this is some how wrong
Correct, Fashoomp already helped you with that didn't he?
Or did you not understand
Ok, so what's the differnece between them?
Just guide me how to complete this exercise and point my mistakes
One is
Assigning and the other is checking if the other is if they are equal
Okay, and what did you use in the line price == False
If price is equal to false?
Yep
Because here you use one = sign
it's assigning it false
which is a legitimate syntax
You continue the question?
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.