Jul-21-2019, 11:35 PM
Thank you DeaD_EyE! Thank everyone!
This is such a smarter way.
This is such a smarter way.
text = 'Hello World' upper_chars = [char for char in text if char.isupper()]think in terms of putting (everytime) a code inside a function is not a god pratice. I think. In Python we have so many possibilities. So many ways to do the same thing.