Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove trailing white space python string

vals_inp=input() 
list_set = list(vals_inp) 
vals = [x for x in list_set if x != ' '] 
set_vals = set(vals)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #trailing #white #space #python #string
ADD COMMENT
Topic
Name
1+6 =