Skip to content

Ch9 make the comparison variables integers #195

Open

Description

@DrJonnyT

How could the content be improved?

Throughout Ch9 you have code like this:

checkouts = 11
if checkouts > 10.0:
    print(f'{checkouts} is over the limit.')

AFAIK there is no reason why the 10.0 should be a float. It should just be 10. In fact in other parts of Ch9 you compare to integers

To fix this, replace all the 10.0 in Ch9 with 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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