[Python] Why am I getting an extra space here?

Discussão em 'Python' iniciado por Stack, Maio 17, 2025.

  1. Stack

    Stack Membro Participativo

    Error Message

    Why am I being told there is an extra space here that is extraneous, and how do I get rid of it?

    I am learning about string formatting, and thought I followed the instructions correctly... I am trying to have only 1 place after the decimal in my float, followed by a C. I have to have the '{}' part in it, and it looks to me to be correct, but is showing that I have an extra space for some reason after the float, before the "C".

    Please help me out with this. Thanks in advance for any and all help provided.

    Continue reading...

Compartilhe esta Página