JamesDoonan1 / emerging-technologies

0 stars 0 forks source link

Fix output of Task 1 (frankenstein) #3

Closed JamesDoonan1 closed 1 month ago

JamesDoonan1 commented 1 month ago

Task 1 - Output

Current results:

FRANKENSTEIN

OR THE MODERN PROMETHEUS

BY MARY WOLLSTONECRAFT GODWIN SHELLEY

CONTENTS

LETTER LETTER LETTER LETTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER

LETTER

TO MRS. SAVILLE ENGLAND.

ST. PETERSBURGH DEC. TH .

YOU WILL REJOICE TO HEAR THAT NO DISASTER HAS ACCOMPANIED TH {'\n\n\n': 150, '\n\nF': 21, '\nFR': 66, 'FRA': 61, 'RAN': 297, 'ANK': 99, 'NKE': 38, 'KEN': 111, 'ENS': 183, 'NST': 189}

What i want to see.

I would like a clearer output, not as many spaces and only one or two lines.

JamesDoonan1 commented 1 month ago

Updated code and the new output is this:

LETTER TO MRS. SAVILLE ENGLAND. ST. PETERSBURGH DEC. TH . YOU WILL REJOICE TO HEAR THAT NO DISASTER HAS ACCOMPANIED THE COMMENCEMENT OF AN ENTERPRISE WHICH YOU HAVE REGARDED WITH SUCH EVIL FOREBODINGS. I ARRIVED HERE YESTERDAY AND MY FIRST TASK IS TO ASSURE MY DEAR SISTER OF MY WELFARE AND INCREASING CONFIDENCE IN THE SUCCESS OF MY UNDERTAKING. I AM ALREADY FAR NORTH OF LONDON AND AS I WALK IN THE STREETS OF PETERSBURGH I FEEL A COLD NORTHERN BREEZE PLAY UPON MY CHEEKS WHICH BRACES MY NERVES AN {' LE': 315, 'LET': 102, 'ETT': 81, 'TTE': 318, 'TER': 850, 'ER ': 1888, 'R T': 587, ' TO': 2425, 'TO ': 2231, 'O M': 359}

This is an improvement.