SlideShare a Scribd company logo
Python CMSC 206
Please fix this code, send me what I should enter, and send me the output of the screenshot as
well.
file = input("Enter a file name: ")
lines = open(file)
cnt = 0
for line in lines:
sp = line.split(" ")
if sp[0] == "From":
print(sp[1])
++cnt
print("There were " + str(cnt) + " lines in the file with From as the first word")

More Related Content

More from JamesPXNNewmanp

Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdfQ1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
JamesPXNNewmanp
 
PYTHON File Analysis Write a program that reads the contents of the tw.pdf
PYTHON File Analysis Write a program that reads the contents of the tw.pdfPYTHON File Analysis Write a program that reads the contents of the tw.pdf
PYTHON File Analysis Write a program that reads the contents of the tw.pdf
JamesPXNNewmanp
 
Psychiatrist from Munich who devised a classification of mental disord.pdf
Psychiatrist from Munich who devised a classification of mental disord.pdfPsychiatrist from Munich who devised a classification of mental disord.pdf
Psychiatrist from Munich who devised a classification of mental disord.pdf
JamesPXNNewmanp
 
provide project managers and their teams with access to informal organ.pdf
provide project managers and their teams with access to informal organ.pdfprovide project managers and their teams with access to informal organ.pdf
provide project managers and their teams with access to informal organ.pdf
JamesPXNNewmanp
 
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdfPseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
JamesPXNNewmanp
 
Provide a substantive comnent to this post- Statistics in R is a pow.pdf
Provide a substantive comnent to this post-   Statistics in R is a pow.pdfProvide a substantive comnent to this post-   Statistics in R is a pow.pdf
Provide a substantive comnent to this post- Statistics in R is a pow.pdf
JamesPXNNewmanp
 
Project Pink initially costs Rs- 25-000- It generates the following ca.pdf
Project Pink initially costs Rs- 25-000- It generates the following ca.pdfProject Pink initially costs Rs- 25-000- It generates the following ca.pdf
Project Pink initially costs Rs- 25-000- It generates the following ca.pdf
JamesPXNNewmanp
 
proinsulin What triggers the closure of KATP channels and the subseque.pdf
proinsulin What triggers the closure of KATP channels and the subseque.pdfproinsulin What triggers the closure of KATP channels and the subseque.pdf
proinsulin What triggers the closure of KATP channels and the subseque.pdf
JamesPXNNewmanp
 
Producers and suppliers andtheir role in the housing stockshortage of.pdf
Producers and suppliers andtheir role in the housing stockshortage of.pdfProducers and suppliers andtheir role in the housing stockshortage of.pdf
Producers and suppliers andtheir role in the housing stockshortage of.pdf
JamesPXNNewmanp
 
Problem- Describe an algorithm for concatenating two singly linked lis.pdf
Problem- Describe an algorithm for concatenating two singly linked lis.pdfProblem- Describe an algorithm for concatenating two singly linked lis.pdf
Problem- Describe an algorithm for concatenating two singly linked lis.pdf
JamesPXNNewmanp
 
Problem 9- (10 points) The mean and standard deviation of a random var.pdf
Problem 9- (10 points) The mean and standard deviation of a random var.pdfProblem 9- (10 points) The mean and standard deviation of a random var.pdf
Problem 9- (10 points) The mean and standard deviation of a random var.pdf
JamesPXNNewmanp
 
Problem 7-20.pdf
Problem 7-20.pdfProblem 7-20.pdf
Problem 7-20.pdf
JamesPXNNewmanp
 
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdfProblem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
JamesPXNNewmanp
 
Problem 4 Let Xi-1in be independent and identically distributed random.pdf
Problem 4 Let Xi-1in be independent and identically distributed random.pdfProblem 4 Let Xi-1in be independent and identically distributed random.pdf
Problem 4 Let Xi-1in be independent and identically distributed random.pdf
JamesPXNNewmanp
 
Problem 3- (12-) Let X and Y be independent random variables with mean.pdf
Problem 3- (12-) Let X and Y be independent random variables with mean.pdfProblem 3- (12-) Let X and Y be independent random variables with mean.pdf
Problem 3- (12-) Let X and Y be independent random variables with mean.pdf
JamesPXNNewmanp
 
Problem 1- Use the pumping lemma for the regular language to prove tha.pdf
Problem 1- Use the pumping lemma for the regular language to prove tha.pdfProblem 1- Use the pumping lemma for the regular language to prove tha.pdf
Problem 1- Use the pumping lemma for the regular language to prove tha.pdf
JamesPXNNewmanp
 
Problem 1- truth values Given the truth values A false- B true- and C.pdf
Problem 1- truth values Given the truth values A false- B true- and C.pdfProblem 1- truth values Given the truth values A false- B true- and C.pdf
Problem 1- truth values Given the truth values A false- B true- and C.pdf
JamesPXNNewmanp
 
Prepare the Communication Plan based on the following STEP 1- IDENTIF.pdf
Prepare the Communication Plan based on the following  STEP 1- IDENTIF.pdfPrepare the Communication Plan based on the following  STEP 1- IDENTIF.pdf
Prepare the Communication Plan based on the following STEP 1- IDENTIF.pdf
JamesPXNNewmanp
 
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdfProblem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
JamesPXNNewmanp
 
Preferred stock is often cailed a hybrid security because it has some.pdf
Preferred stock is often cailed a hybrid security because it has some.pdfPreferred stock is often cailed a hybrid security because it has some.pdf
Preferred stock is often cailed a hybrid security because it has some.pdf
JamesPXNNewmanp
 

More from JamesPXNNewmanp (20)

Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdfQ1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
Q1- Given is the symbol of a 1-bit full adder- Please draw a diagram t.pdf
 
PYTHON File Analysis Write a program that reads the contents of the tw.pdf
PYTHON File Analysis Write a program that reads the contents of the tw.pdfPYTHON File Analysis Write a program that reads the contents of the tw.pdf
PYTHON File Analysis Write a program that reads the contents of the tw.pdf
 
Psychiatrist from Munich who devised a classification of mental disord.pdf
Psychiatrist from Munich who devised a classification of mental disord.pdfPsychiatrist from Munich who devised a classification of mental disord.pdf
Psychiatrist from Munich who devised a classification of mental disord.pdf
 
provide project managers and their teams with access to informal organ.pdf
provide project managers and their teams with access to informal organ.pdfprovide project managers and their teams with access to informal organ.pdf
provide project managers and their teams with access to informal organ.pdf
 
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdfPseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
Pseudopods are used by amoebas for locomotion- A- True B- False QUESTI.pdf
 
Provide a substantive comnent to this post- Statistics in R is a pow.pdf
Provide a substantive comnent to this post-   Statistics in R is a pow.pdfProvide a substantive comnent to this post-   Statistics in R is a pow.pdf
Provide a substantive comnent to this post- Statistics in R is a pow.pdf
 
Project Pink initially costs Rs- 25-000- It generates the following ca.pdf
Project Pink initially costs Rs- 25-000- It generates the following ca.pdfProject Pink initially costs Rs- 25-000- It generates the following ca.pdf
Project Pink initially costs Rs- 25-000- It generates the following ca.pdf
 
proinsulin What triggers the closure of KATP channels and the subseque.pdf
proinsulin What triggers the closure of KATP channels and the subseque.pdfproinsulin What triggers the closure of KATP channels and the subseque.pdf
proinsulin What triggers the closure of KATP channels and the subseque.pdf
 
Producers and suppliers andtheir role in the housing stockshortage of.pdf
Producers and suppliers andtheir role in the housing stockshortage of.pdfProducers and suppliers andtheir role in the housing stockshortage of.pdf
Producers and suppliers andtheir role in the housing stockshortage of.pdf
 
Problem- Describe an algorithm for concatenating two singly linked lis.pdf
Problem- Describe an algorithm for concatenating two singly linked lis.pdfProblem- Describe an algorithm for concatenating two singly linked lis.pdf
Problem- Describe an algorithm for concatenating two singly linked lis.pdf
 
Problem 9- (10 points) The mean and standard deviation of a random var.pdf
Problem 9- (10 points) The mean and standard deviation of a random var.pdfProblem 9- (10 points) The mean and standard deviation of a random var.pdf
Problem 9- (10 points) The mean and standard deviation of a random var.pdf
 
Problem 7-20.pdf
Problem 7-20.pdfProblem 7-20.pdf
Problem 7-20.pdf
 
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdfProblem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
Problem 7 The Wechsler Adult Intelligence Scale is standardized to hav.pdf
 
Problem 4 Let Xi-1in be independent and identically distributed random.pdf
Problem 4 Let Xi-1in be independent and identically distributed random.pdfProblem 4 Let Xi-1in be independent and identically distributed random.pdf
Problem 4 Let Xi-1in be independent and identically distributed random.pdf
 
Problem 3- (12-) Let X and Y be independent random variables with mean.pdf
Problem 3- (12-) Let X and Y be independent random variables with mean.pdfProblem 3- (12-) Let X and Y be independent random variables with mean.pdf
Problem 3- (12-) Let X and Y be independent random variables with mean.pdf
 
Problem 1- Use the pumping lemma for the regular language to prove tha.pdf
Problem 1- Use the pumping lemma for the regular language to prove tha.pdfProblem 1- Use the pumping lemma for the regular language to prove tha.pdf
Problem 1- Use the pumping lemma for the regular language to prove tha.pdf
 
Problem 1- truth values Given the truth values A false- B true- and C.pdf
Problem 1- truth values Given the truth values A false- B true- and C.pdfProblem 1- truth values Given the truth values A false- B true- and C.pdf
Problem 1- truth values Given the truth values A false- B true- and C.pdf
 
Prepare the Communication Plan based on the following STEP 1- IDENTIF.pdf
Prepare the Communication Plan based on the following  STEP 1- IDENTIF.pdfPrepare the Communication Plan based on the following  STEP 1- IDENTIF.pdf
Prepare the Communication Plan based on the following STEP 1- IDENTIF.pdf
 
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdfProblem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
Problem 2- (11--) Let X and Y be independent Binomial(n-p) random vari.pdf
 
Preferred stock is often cailed a hybrid security because it has some.pdf
Preferred stock is often cailed a hybrid security because it has some.pdfPreferred stock is often cailed a hybrid security because it has some.pdf
Preferred stock is often cailed a hybrid security because it has some.pdf
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 

Python CMSC 206 Please fix this code- send me what I should enter- and.pdf

  • 1. Python CMSC 206 Please fix this code, send me what I should enter, and send me the output of the screenshot as well. file = input("Enter a file name: ") lines = open(file) cnt = 0 for line in lines: sp = line.split(" ") if sp[0] == "From": print(sp[1]) ++cnt print("There were " + str(cnt) + " lines in the file with From as the first word")