Python Examples - Learn to Code — For Free
www.freecodecamp.org › news › python-exampleDec 31, 2019 · We could also iterate inline using python. For example if we need to uppercase all the words in a list from a list, we could simply do the following: A = ["this", "is", "awesome", "shinning", "star"] UPPERCASE = [word.upper() for word in A] print (UPPERCASE) Output: > ['THIS', 'IS', 'AWESOME', 'SHINNING', 'STAR'] Python Function Example