Loading…
Convert all strings in ['hello', 'world'] to uppercase using a list comprehension, then print the resulting list. Expected output: ['HELLO', 'WORLD'].
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.