I am trying to create a list where I need to input numbers as strings in one list and I am trying to do it with a while loop.
while input_list[-1] != "":
input_list.append(raw_input())
However when numbers are entered they are returned as u'X', X being the number entered. I cannot perfrom mathematical calculations on these numbers.
I would usually use str() or int() but I cant generalise in this case.
Is there a cleaner way to remove the u' ' prefix than simpley using if statements?