raw_input
returns a string. So use int(raw_input())
.
And for how string and int comparsions work, look here.
More Related Contents:
- How to set time limit on raw_input
- How do I check if raw input is integer in python 2.7?
- Execute python script while open terminal
- a python library that accepts some text, and replaces phone numbers, names, and so on with tokens
- Division in Python 2.7. and 3.3 [duplicate]
- Integer division in Python 2 and Python 3
- Python – Extracting and Saving Video Frames
- How to check the version of Python modules
- Cleanest way to get last item from Python iterator
- Default arguments with *args and **kwargs
- rounding errors in Python floor division
- How to Install and Use TkDnD with Python Tkinter on OSX?
- Where should I put my own python module so that it can be imported
- Comparing two pandas dataframes for differences
- Serializing binary data in Python
- How references to variables are resolved in Python [duplicate]
- Why python’s list slicing doesn’t produce index out of bound error? [duplicate]
- Using PIL to turn a RGB image into a pure black and white image
- Checking fuzzy/approximate substring existing in a longer string, in Python?
- Can json.loads ignore trailing commas?
- Opencv – Grayscale mode Vs gray color conversion
- Sending a file over TCP sockets in Python
- How to make a simple multithreaded socket server in Python that remembers clients
- pandas, melt, unmelt preserve index
- Calling Python script from C++ and using its output
- Python 2: SMTPServerDisconnected: Connection unexpectedly closed
- Redo for loop iteration in Python
- How to create a new text file using Python
- Elegant way to perform tuple arithmetic
- ‘is’ operator behaves unexpectedly with floats