Skip to content

Can't compare NoneType with float/int #1

@epenelope

Description

@epenelope

python-playground$ python3 largest-smallest.py
Enter a number: 10
Traceback (most recent call last):
File "largest-smallest.py", line 10, in
if num >= largest:
TypeError: '>=' not supported between instances of 'float' and 'NoneType'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions