So, I am trying to create a program which counts the number of characters in a string which the user inputs, but I want to discard any spaces that the user enters.
To count the number of characters excluding spaces, you can simply do:
>>> full_name = "John DOE" >>> len(full_name) - full_name.count(' ') 7