#๐Ÿ”’ how to escape function

18 messages ยท Page 1 of 1 (latest)

high plank
#

sometime when i write a function my cursor didn escape the function regardless i've implemented return statement

gray nightBOT
#

@high plank

Python help channel opened

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.

high plank
#

@tacit lark

#

here

tacit lark
#

show code

high plank
#

i mean i didn write currently but sometimes when im trying it doesnt escape ..like give me the main idea why it is usually

wary crown
#

you didn't reach the return line is the normal cause

#

without any code there's really nothing else to say. you didn't actually return, even though you thought you did is the short answer

tacit lark
#

yea need to see code

dense cosmos
#

Agreed. You might have an endless loop or a condition where return is never reached.

high plank
#

okay, im srry ...i think i'll ask again when i encounter into one

#

bcuz i didn write any currently

#

and couldnt think of how my code looks like

tacit lark
#

alright no problem

#

u can ping me if u do

#

when u do...

gray nightBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.