DEV Community

Discussion on: Daily Challenge #39 - Virus

Collapse
 
hectorpascual profile image
Héctor Pascual

Ok then split document by lines and call the function :

document_splitted = document.split('\n')
for line in document_splitted:
    fix_virus(line)
    ....

Or capitalize each line of the document after lowering :)

Thread Thread
 
j_mplourde profile image
Jean-Michel Plourde

Your solution is very good btw. Good job