Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in 002_conditionals.ipynb #5

Open
ajaykumaras opened this issue Jul 13, 2019 · 0 comments
Open

Error in 002_conditionals.ipynb #5

ajaykumaras opened this issue Jul 13, 2019 · 0 comments

Comments

@ajaykumaras
Copy link

# 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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant