Skip to content

Error in 002_conditionals.ipynb #5

Description

@ajaykumaras
# Let's see the conditionals available
v1 = "Jennifer"
v2 = "Python"
v3 = 45
v4 = 67
v5 = 45

# Test for equality
print (v1 == v2)

# Test for greater than and greater than equal
print (v4 > v3)
print (v5 >= v2)

# Test for lesser than and lesser than equal
print (v4 < v3)
print (v5 <= v2)

# Inequality
print (v1 != v2)

False
True


TypeError Traceback (most recent call last)

in ()
10 # Test for greater than and greater than equal
11 print (v4 > v3)
---> 12 print (v5 >= v2)
13
14 # Test for lesser than and lesser than equal

TypeError: '>=' not supported between instances of 'int' and 'str'

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions