▲ 37 ▼ Python String Formatting: f-strings vs .format() vs % (slicker.me) submitted 6 months ago by monica_b1998@lemmy.world to c/python@programming.dev 15 comments fedilink hide all child comments
[–] ZoteTheMighty@lemmy.zip 5 points 6 months ago (1 child) {:.0f} always works though for floats or ints permalink fedilink source parent hideshow 1 child comment replies: [–] itsathursday@lemmy.world 2 points 6 months ago Ah nice one permalink fedilink source parent