str_=raw_input('Enter:')
for i,k in enumerate(str_):
if str_[i] != str_[i].upper():
v=str(str_[i].upper())
print v,
else:
c= str(str_[i].lower())
print c,
This code helps swapping the cases My output is right but i'm getting spaces in between i tried all possible ways to remove the spaces like re.sub,strip(\n),remove(' ','' ) still my output is like this
>>>Enter:juNgLe
J U n G l E
where i want my output:JUnGlE