#π Got an error again coding tic tac toe
48 messages Β· Page 1 of 1 (latest)
@austere valve
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.
wait let me sent the code rq
Do you understand what return does?
just look at my code rq
I am, but I'm asking you a separate question
not really sure
What were you trying to use it for if you don't know what it does?
return is the result of calling a function, but it's often used to exit the function early (since functions do not move beyond the return)
I have so much errors rn so
but your code is not inside a function right now
im kinda new to this so i dont understand most of the stuff lol
can u just help me
That's ok, I'm just trying to get a sense of what you know and don't know
Okay
Do you understand what indentation is in python?
Where have you been learning from?
a tutorial but i also do some stuff on my own then see if they are correct
in the tutorial
indentation is the spacing at the start of a line
python uses it to determine what logic block your code is part of
already fixed this person's error a couple of days ago in here.. they're probably a bot.. same error.. same line number.. same script
def func():
print("This is inside the function")
print("This is not inside the function")
Test me any way bro
Bots dont have tags they dont have bios
Bots do NOT talk like me
gng
does this make sense?
Yeah but i dont know what i should do with the second print u put do i just not put it?
In my example, how would you make the 2nd print as part of the function?
i wouldnt. Since yeah mb for being really annoying since i dont know mostly anything so sorry if u want u can go ahead and leave this thread, But yeah i would just not put it tbh
this is my first time trying coding so
You're not being annoying at all
but I'm trying to get you to think about what's in front of you
we don't hand out the answer here directly
you won't learn anything that way
yeah ik
so how would you move the 2nd print into the function?
@austere valve still there?
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.