2
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 03 Aug 2025
2 points (62.5% liked)
General Programming Discussion
10011 readers
1 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 7 years ago
MODERATORS
Drop the second loop entirely and just do
print(line + '+')again at the end -lineandlin2contain the exact same string so it's unnecessary to construct it twice.ohhh this is the answer i was looking for
others suggested me some shit like
name = "World" print(f"+{'':-^{len(name)}}+\n|{name}|\n+{'':-^{len(name)}}+")
i was confused AF