'How to remove numbers (written as digits and spelling) from a sentence?

I have an input sentence of the form: This is one input sentence, this is also 1 input sentence. Together they are two sentences

I would like to omit the numbers from this sentence, be it in form of spelling or as numbers itself.

The expected output is: This is input sentence, this is also input sentence. Together they are sentences

I could create a dictionary of the numbers that I would need to omit but then that would be tedious and a bad way to do it.

Is there an easier way to do it in Python?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source