That's correct behaviour. remove removes that element and doesn't return a value (i.e. returns None). You can use pop if you wish to access the removed element.

Answer from 101 on Stack Overflow
🌐
Python.org
discuss.python.org › python help
'None' keeps appearing in the output - How to remove it? - Python Help - Discussions on Python.org
March 29, 2023 - This is an assignment, when I run the code it runs properly but keeps putting ‘None’ at the end. Can anyone help me? def option_A(): fBondValue = float(input("\nEnter face value of bond: ")) fIntr = float(input…
🌐
Python.org
discuss.python.org › python help
How to remove "None" from output - Python Help - Discussions on Python.org
August 14, 2022 - Test input “This is awesome” ... that prints? Thanks def search(text, word): if word in text: print('Word found') else: print('Missing ') text = input() word = input() print(search(text, word))...
🌐
Maschituts
maschituts.com › how-to-get-rid-of-none-in-python
How to Get Rid of None in Python — Easy!
October 10, 2023 - In the above code, we are printing the return value of test(). Since it returns None, it gets displayed in the output. With that said, to get rid of None in Python, we can do two things. First, we can remove the print() function. In this way, ...
Find elsewhere
🌐
Reddit
reddit.com › r/python › return none or not to return none
r/Python on Reddit: return None or not to return None
August 30, 2013 -

Several weeks ago a was pursuing some of the posts here on python and stumbled on an article about bad programming habits. I cant find the article again for reference but right at the top was a heady warning to avoid returning a meaningful None. AT the time I thought, 'well thats just droll and I never do that anyway', but as it turns out I do it all the time. If the function finds the correct thing then return the correct thing otherwise just end the function and python will return None for you.

So do you guys do the same thing? Whats wrong with returning None in the first place? What strategies do you use to avoid returning None?

🌐
Bobby Hadz
bobbyhadz.com › blog › python-remove-none-from-list
How to Remove the None values from a List in Python | bobbyhadz
Use a list comprehension to remove the None values from a list in Python, e.g. `new_list = [i for i in my_list if i is not None]`.
🌐
Finxter
blog.finxter.com › python-list-remove
Python List remove() – Be on the Right Side of Change
You can call this method on each list object in Python. Here’s the syntax: ... The method list.remove(element) has return value None.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-remove-none-values-from-list
Remove None values from list without removing 0 value - Python - GeeksforGeeks
itertools.filterfalse() function offers an alternative to filter(). It filters out None values by applying an inverted condition i.e., it keeps elements that are not None . ... import itertools a = [1, None, 3, None, 0 , 5] b = list(itertoo...
Published   July 11, 2025
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-return-null-in-python
How to return null in Python ? - GeeksforGeeks
July 23, 2025 - def my_function(): return None # Call the function and store #the returned value in the variable 'result' result = my_function() print(result) ... In Python, None is used to represent a null value or the absence of a result.
🌐
Python.org
discuss.python.org › python help
'None' keeps appearing in the output - How to remove it? - Page 2 - Python Help - Discussions on Python.org
March 29, 2023 - 😂 here goes then: ## Send the user to printMenu, now known as options. def main(): options = printMenu() print(options) ## Display the menu for the user. def printMenu(): print("\nBond Yield to Maturity (YTM) Calculator") print("A: Calculate ...