this post was submitted on 25 Jun 2023
86 points (100.0% liked)

pythonhelp

563 readers
1 users here now

A community for posts that include helping Python programmers

Discord:
https://discord.gg/39K88eCxxr

founded 1 year ago
MODERATORS
 

I started python almost 10 years ago now (jesus that makes me feel old). During that time, r/learnpython was incredibly helpful in that journey, and I learned a lot from the folks there.

I can't wait to build the same thing here, and I want to offer my services as best I can to do so. If you have an issue, question or problem, post! You can reply here if it's just a quick clarification, but feel free to make your own post and include your code. I'll do my best to read it when I can and give any help I can. I don't have "all the knowledge" - but I'm pretty proud of myself for being a near expert with the language.

So hit me, how can I help?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 year ago (1 children)

I was actively helping people (under a different name) with general python questions on r/learnpython also, and am keeping an eye on this community.

Note that lemmy is similar to reddit in that you want to mark your code blocks as code (using the code button or by indenting 4 spaces) to retain the formatting. Python can become pretty much unreadable without it since indentation is so critical to the language.

[–] Limeey 7 points 1 year ago (1 children)

I believe you can use triple backticks too and just paste your code in the space between.

```
codes goes here
```

Example:

def hello(name:  str) -> None:
    print(f'Hello {name}')
[–] Falmarri 3 points 1 year ago* (last edited 1 year ago) (3 children)

~~Fwiw the backquotes don't show as code on jerboa~~ I'm an idiot

[–] Hellstormy 3 points 1 year ago (1 children)
[–] Falmarri 1 points 1 year ago (1 children)
[–] lambchop 2 points 1 year ago (1 children)

They used backticks in a way that wouldn't show code the first time, to show the backticks. Then used it properly the second time, and you can see in your screenshot that it did appear as code.

[–] Falmarri 2 points 1 year ago

Oh fuck me I'm an idiot

[–] Limeey 3 points 1 year ago (1 children)

just checked, code markdown does work on memmy (which should have an android version as soon as google approves it)

[–] Solo 3 points 1 year ago

Its working on thunder for me right now.

[–] Limeey 3 points 1 year ago (1 children)

Likely a result of the markdown library they're using. Probably reach out in their community and they can find a solution. On desktop (where I assume most people are writing python) it does work

[–] [email protected] 1 points 1 year ago

Backticks do work on Liftoff for android however