3 odpowiedzi
+ 2
what exactly is your task ? filter all numbers from a string and append them on its end ?
+ 2
yes exactly. you write a string composed of a mixture of capital letters, noncapital letters and numbers and it separates them into three groups consisting of either only small letters, capital letters and numbers.
+ 1
# this could be a start for you , it seperates the lower upper and digits from the string via list comprehension.
inp = input()
lowerletters = [i for i in inp if i.islower()]
upperletters = [i for i in inp if i.isupper()]
numbers = [i for i in inp if i.isdigit()]
print(lowerletters)
print(upperletters)
print(numbers)