I think that the problem is bacause you are using the same index for two nested loops.
More Related Contents:
- User input integer list [duplicate]
- How to sort a list of strings in reverse order without using reverse=True parameter?
- Deleting consonants from a string in Python
- How does str.startswith really work?
- How to search and replace text in a file?
- Getting a map() to return a list in Python 3.x
- TypeError: not all arguments converted during string formatting python
- Loop “Forgets” to Remove Some Items [duplicate]
- String formatting in Python 3
- Find column whose name contains a specific string
- Extending list returns None [duplicate]
- What’s the difference between str.isdigit, isnumeric and isdecimal in python?
- Why are str.count(”) and len(str) giving different output?
- How to match any string from a list of strings in regular expressions in python?
- Confused about __str__ on list in Python [duplicate]
- Print list of lists in separate lines
- Safely evaluate simple string equation
- Python 3.1.1 string to hex
- Perform a string operation for every element in a Python list
- Count number of words per row
- How to print like printf in Python3?
- Change a string of integers separated by spaces to a list of int
- How to create a list with the characters of a string? [duplicate]
- Convert a columns of string to list in pandas
- How to apply __str__ function when printing a list of objects in Python [duplicate]
- What’s the difference between str.isdigit(), isnumeric() and isdecimal() in Python?
- Changing one dict changes all dicts in a list of dicts [duplicate]
- Appending to list in Python dictionary [duplicate]
- How can I convert string values from a dictionary, into int/float datatypes?
- How to convert only numbers in a mixed list into float