schlunker
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
الله@lemmy.world to General Programming Discussion@lemmy.ml · 29 days ago

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

lemmy.ml

message-square
6
fedilink
3

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

lemmy.ml

الله@lemmy.world to General Programming Discussion@lemmy.ml · 29 days ago
message-square
6
fedilink
  • setsubyou@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    29 days 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
      ·
      29 days ago

    • الله@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      29 days 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.

  • 1 user / day
  • 5 users / week
  • 46 users / month
  • 495 users / 6 months
  • 1 local subscriber
  • 8.9K subscribers
  • 400 Posts
  • 477 Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • Restioson@lemmy.ml
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org