ITECH-1400 Data Science Project: Text File Manipulation using Python
VerifiedAdded on 2025/08/07
|10
|372
|247
AI Summary
Desklib provides solved assignments and past papers to help students succeed.

ITECH-1400
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Table of Contents
Introduction................................................................................................................................3
Sonnets File................................................................................................................................4
Pseudocode.............................................................................................................................4
Coding and Implementation...................................................................................................4
Code Output...........................................................................................................................5
Doublet File................................................................................................................................6
Pseudocode.............................................................................................................................6
Coding and Implementation...................................................................................................6
Code Output...........................................................................................................................8
Conclusion..................................................................................................................................9
References................................................................................................................................10
Introduction................................................................................................................................3
Sonnets File................................................................................................................................4
Pseudocode.............................................................................................................................4
Coding and Implementation...................................................................................................4
Code Output...........................................................................................................................5
Doublet File................................................................................................................................6
Pseudocode.............................................................................................................................6
Coding and Implementation...................................................................................................6
Code Output...........................................................................................................................8
Conclusion..................................................................................................................................9
References................................................................................................................................10

Introduction
In the assignment, the program will be developed on the basis of python skills for exploring
& manipulating the text files. It demands the whole script of reading the file by performing
the various logics or operations for example, counting letters occurrence. Below down, the
pseudocode and the coding screens will be provided for Sonnets file and the Doublets file.
In the assignment, the program will be developed on the basis of python skills for exploring
& manipulating the text files. It demands the whole script of reading the file by performing
the various logics or operations for example, counting letters occurrence. Below down, the
pseudocode and the coding screens will be provided for Sonnets file and the Doublets file.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Sonnets File
Pseudocode
- Firstly, it will read the Shakespear_Sonnets file.
- Then it will split the words in the different lines.
- With the help of graphs, it will provide the graphical representation of words added.
- It also checks the difference with the help of graphs.
- It the values is less than two (2), then it will be stated as shortest path (Cielen, et al.,
2016).
Coding and Implementation
Figure 1: Code part
Pseudocode
- Firstly, it will read the Shakespear_Sonnets file.
- Then it will split the words in the different lines.
- With the help of graphs, it will provide the graphical representation of words added.
- It also checks the difference with the help of graphs.
- It the values is less than two (2), then it will be stated as shortest path (Cielen, et al.,
2016).
Coding and Implementation
Figure 1: Code part
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Code Output
Figure 2: Output Screen
Figure 2: Output Screen

Doublet File
Pseudocode
- Firstly, it will read the Words_List file.
- Then it will split the words in the different lines.
- Created list will be used.
- Data frames will be created in the form of columns.
- Every letter is converted into lowercase.
- Letters will be counted.
- Count letter will be sorted, after that it will displayed to the end-users (Nagpal & Gabrani,
2019).
Coding and Implementation
Figure 3: Code part 1
Pseudocode
- Firstly, it will read the Words_List file.
- Then it will split the words in the different lines.
- Created list will be used.
- Data frames will be created in the form of columns.
- Every letter is converted into lowercase.
- Letters will be counted.
- Count letter will be sorted, after that it will displayed to the end-users (Nagpal & Gabrani,
2019).
Coding and Implementation
Figure 3: Code part 1
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Figure 4: Code part 2
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Code Output
Figure 5: Output Screen
Figure 5: Output Screen

Conclusion
It is concluded that the program is coded in the python platform for exploring & manipulating
the text files named as “Shakespear_Sonnets” and “Words_List”. There are such libraries of
python is been used for developing the program is String, NumPy, and Pandas. The
successful running of the code is provided in the form of code screenshots and the output
screens of program.
It is concluded that the program is coded in the python platform for exploring & manipulating
the text files named as “Shakespear_Sonnets” and “Words_List”. There are such libraries of
python is been used for developing the program is String, NumPy, and Pandas. The
successful running of the code is provided in the form of code screenshots and the output
screens of program.
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

References
Cielen, D., Meysman, A. and Ali, M., 2016. Introducing data science: big data, machine
learning, and more, using Python tools. Manning Publications Co
Nagpal, A. and Gabrani, G., 2019, February. Python for Data Analytics, Scientific and
Technical Applications. In 2019 Amity International Conference on Artificial Intelligence
(AICAI) (pp. 140-145). IEEE.
Cielen, D., Meysman, A. and Ali, M., 2016. Introducing data science: big data, machine
learning, and more, using Python tools. Manning Publications Co
Nagpal, A. and Gabrani, G., 2019, February. Python for Data Analytics, Scientific and
Technical Applications. In 2019 Amity International Conference on Artificial Intelligence
(AICAI) (pp. 140-145). IEEE.
1 out of 10
Related Documents
Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2026 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.
