At the bottom of your loop, you strangely convert number
to a string. You can’t compare that to an integer. Just remove that comparison and conversion from the bottom of your code.
More Related Contents:
- How do I remove all white space in any given input? [closed]
- Short description of the scoping rules?
- Handling very large numbers in Python
- Why do you need explicitly have the “self” argument in a Python method?
- How do I get monitor resolution in Python?
- Python list multiplication: [[…]]*3 makes 3 lists which mirror each other when modified [duplicate]
- Writing a connection string when password contains special characters
- ImportError: No module named PIL
- Interactive input/output using Python
- How to import members of all modules within a package?
- Combining two Series into a DataFrame in pandas
- Take multiple lists into dataframe
- Adding two pandas dataframes
- Using Extensions with Selenium (Python)
- How to group pandas DataFrame entries by date in a non-unique column
- What is the difference between int() and floor() in Python 3?
- “Series objects are mutable and cannot be hashed” error
- Interacting with program after execution
- How to set justification on Tkinter Text box
- Why using an array as an index changes the shape of a multidimensional ndarray?
- how to convert list of dict to dict
- While installing pyttsx3: Command errored out with exit status 1
- Lazy logger message string evaluation
- How to find a missing number from a list?
- socket.gaierror: [Errno 11001] getaddrinfo failed
- Can pip be used with Python Tools in Visual Studio?
- scipy.optimize.leastsq with bound constraints
- Convert dates to pd.to_datetime where month could be either a number or month name
- “gettext()” vs “gettext_lazy()” in Django
- how to add a coroutine to a running asyncio loop?