Here's a list comprehension with a for loop to convert all characters to uppe case
string = 'Hello'
print "".join([s.upper() for s in string])
Here's a list comprehension to only convert the lower characters to upper case
print "".join([s.upper() for s in string if s.islower()])
Can there be a list comprehension that can swap the case in a string? Something like
print "".join([s.upper() for s in string if s.islower() else s.lower()])