this post was submitted on 01 Jan 2026
373 points (97.7% liked)

memes

20859 readers
2604 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
373
Permanently Deleted (lemmy.world)
submitted 3 months ago* (last edited 3 months ago) by qaz@lemmy.world to c/memes@lemmy.world
 

Permanently Deleted

you are viewing a single comment's thread
view the rest of the comments
[–] gravitas_deficiency@sh.itjust.works 15 points 3 months ago (3 children)

Side note: lmfao wtf is this Mickey Mouse block-quote-but-not-really bullshit?

AI code or someone who doesn't understand python well

[–] SchwertImStein@lemmy.dbzer0.com 4 points 3 months ago

what seems to be the problem here?

[–] Deathray5@lemmynsfw.com 2 points 3 months ago (1 children)

How would you write it, I'm new to python but it reads like they are just trying to make the code not go off the side of the screen?

You do multiline strings with 3 quotes, e.g.:

some_var = “string”
s = f"""
This is a very very very very very very very very very
very very very very very very long {some_var}.
"""

If you don’t want line breaks, you can also do

some_var = “string”
s = (
  f”This is a very very very very very very very very very”
  # note the leading space here
  f” very very very very very very long {some_var}.”
)

But doing it the way shown will render the string something like:

This is a very very very very very very very very very      very very very very very very long {some_var}.

That big block of white space in the middle is not desired.