r/PythonLearning • • Oct 23 '26

Help Request Def return

I'm stuck in def return in python I don't understand it very well why is it used and how and where does the code return to ? The caller ? What is exactly the caller ?

Thank you so much for helping me

If you don't mind can u help me understand with examples ? Couldn't understand this with Chatgpt and yt

0 Upvotes

21 comments sorted by

View all comments

Show parent comments

3

u/NotSeacombe Oct 23 '26

sorry, reddit is not saving my indentations so it looks a little weird

1

u/tiredITguy42 Oct 23 '26

Start with lime with ``` and finish with the same. Reddit supports marktown and this os markdown for codeblock.

1

u/Ormek_II Oct 25 '26 edited Oct 25 '26

Let me try

```
So this is the code block
With indent
```

1

u/tiredITguy42 Oct 25 '26

I see them escaped in update notification, like \`\`\`, and you need to have empty line above that block.

1

u/Ormek_II Oct 25 '26

I think iOS app automatically escapes markup. Maybe there is a setting somewhere….

1

u/Ormek_II Oct 25 '26

There is none: Reddit does not support markdown in apps.

Deprecation of composer markdown shortcuts
What’s changing?
Previously, we supported markdown formatting (e.g.: **text** = text) on post and comment composer on native mobile apps. As part of a broader initiative to improve technical performance, we no longer support markdown formatting in post composer for iOS or Android. We’ll also begin to deprecate markdown formatting on iOS and Android comment composer soon. 

June 2 Update: You'll now be able to manage most formatting functionality via the rich-text toolbar. We plan to continue adding new functionality via the rich-text toolbar in the future.