You probably want a return
on the last line:
return isIn(char, aStr)
Without it, the function simply returns None
when it terminates without seeing a return
.
More Related Contents:
- Why does my recursive function return None?
- Return in Recursive Function
- Is it possible to not return anything from a function in python?
- Why does append() always return None in Python? [duplicate]
- Why does “return list.sort()” return None, not the list?
- Recursive function returning none in Python [duplicate]
- How can I return two values from a function in Python?
- Python recursion with list returns None [duplicate]
- Basics of recursion in Python
- How to “test” NoneType in python?
- Error when configuring tkinter widget: ‘NoneType’ object has no attribute
- TypeError: ‘NoneType’ object is not iterable in Python
- How to use a return statement in a for loop?
- What’s the best way to return multiple values from a function? [duplicate]
- Python Script returns unintended “None” after execution of a function [duplicate]
- How to flatten a nested JSON recursively, with flatten_json
- How can I use `return` to get back multiple values from a for loop? Can I put them in a list?
- Setting property causes maximum recursion depth exceeded
- How to find common elements in list of lists?
- python recursive vectorization with timeseries
- Generate all possible lists of length N that sum to S in Python
- How can a recursive regexp be implemented in python?
- Accessing returned values from a function, by another function
- Python: maximum recursion depth exceeded while calling a Python object
- How do I get the return value when using Python exec on the code object of a function?
- CSV reader behavior with None and empty string
- Finding all maze solutions with Python
- Valid characters in a String
- How to constuct a column of data frame recursively with pandas-python?
- Max recursion is not exactly what sys.getrecursionlimit() claims. How come?