Halimah Bukirwa

Halimah Bukirwa

List Comprehension in Python

Create a list of the first letters of every word in the string below:

List Comprehension in Python

Open your jupyter notebook This is the string:

add.PNG

Next cell

Capture.PNG

Now, run the cell

easy.PNG

Easy, right? Now try it!

 
Share this