DEV Community

loading...

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
bigj1m profile image
Jim Plourde

Your solution is very good btw. Good job