Daily Chess Puzzle – Train your tactical vision with fresh puzzles. Click any card, think, and then reveal the solution in the post body.

class Poem: def __init__(self): # read every line from the file - poem.txt # add them to a list pass def clean(self): # remove special characters from each line in the list # use regex and enumerate pass def clean(self): # remove special characters from each line in the list # map and regex and lambda pass def clean(self): # remove special characters from each line in the list # list comprehesnion and regex pass def wordIndex(self): # {'Breathes':1,"there":1 ...."my":2} pass p1 = Poem() # -----------> init method p1.clean() print(p1.wordIndex()) Breathes there the man with soul, so dead; who never to himself hath said, "This is my land, my native land!!!"

No comments

No comments yet. Be the first!

Post a Comment

Search This Blog

Explore More Topics

Loading topics…