Skip to content

Use f-strings #1020

@airalcorn2

Description

@airalcorn2

I think the lesson would benefit from switching to f-strings for print statements. E.g., the line here:

print('weight in pounds:', 2.2 * weight_kg)

would become:

print(f'weight in pounds: {2.2 * weight_kg}')

f-strings are typically more readable and easier to work with than other printing options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions