Uhhoh!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
الله@lemmy.world to General Programming Discussion@lemmy.ml · 2 months ago

Apparently this code is not good enough can someone help me?

lemmy.ml

message-square
6
link
fedilink
2

Apparently this code is not good enough can someone help me?

lemmy.ml

الله@lemmy.world to General Programming Discussion@lemmy.ml · 2 months ago
message-square
6
link
fedilink
  • setsubyou@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 months ago

    The second loop basically just creates the same content that’s already in line so it wants you to print that again instead.

    I wonder what it would say to

    name = "World"
    print(f"+{'':-^{len(name)}}+\n|{name}|\n+{'':-^{len(name)}}+")
    
    • الله@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

    • الله@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      deleted by creator

General Programming Discussion@lemmy.ml

programming@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@lemmy.ml

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

  • !python@lemmy.ml
  • !powershell@lemmy.ml
  • !julia@lemmy.ml
  • !iosprogramming@lemmy.ml

Systems

  • !rust@lemmy.ml
  • !cpp@lemmy.ml
  • !c_programming@lemmy.ml

Functional Programming

  • !haskell@lemmy.ml
  • !fpcomplete@lemmy.ml

Also related

  • !opensource@lemmy.ml
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 66 users / day
  • 31 users / week
  • 79 users / month
  • 424 users / 6 months
  • 1 local subscriber
  • 9.02K subscribers
  • 138 Posts
  • 180 Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • Restioson@lemmy.ml
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org