[Python] What is Python greater than? [closed]

Discussão em 'Python' iniciado por Stack, Agosto 11, 2025.

  1. Stack

    Stack Membro Participativo

    According to Python, Python is greater than Java, Fortran and C++.

    >>> 'python' > 'java'
    True
    >>> 'python' > 'fortran'
    True
    >>> 'python' > 'c++'
    True


    Python is also greater than cats, avocados and cheese, but less than sandwiches and turnips.

    >>> 'python' > 'cats'
    True
    >>> 'python' > 'sandwiches'
    False
    >>> 'python' > 'avocados'
    True
    >>> 'python' > 'turnips'
    False
    >>> 'python' > 'cheese'
    True


    Python is greater than gandalf, bombadil and galadriel, but not sauron.

    >>> 'python' > 'gandalf'
    True
    >>> 'python' > 'bombadil'
    True
    >>> 'python' > 'sauron'
    False
    >>> 'python' > 'galadriel'
    True


    Python is not greater than trees but it is greater than a forest.

    >>> 'python' > 'trees'
    False
    >>> 'python' > 'forest'
    True


    How do you rank the power of Python?

    Continue reading...

Compartilhe esta Página