SlideShare a Scribd company logo
U.S. Senate?The file Senate113.txt contains the members of the 113 th U.S. Senate-that is, the
Senate prior to the November 2014 election. Each record of the file consists of three fields-name,
state, and party affiliation. 3 Some records in the file are as follows: 3We refer to anyone who is
neither a Republican nor a Democrat as an independent. Richard Shelby, Alabama, R Bernard
Sanders, Vermont, I Kristen Gillibrand,New York, D The file RetiredSen.txt contains the records
from the file Senate113.txt for senators who left the Senate after the November 2014 election due
to retirement, defeat, death, or resignation. Some records in the file are as follows: John
Rockefeller, West Virginia, D Tom Coburn, oklahoma, R Car1 Levin,Michigan, D The file
NewSen.txt contains records for the senators who were newly elected in November 2014 or who
were appointed to fill the seats of senators who left after the November 2014 election. Some
records in the file are as follows: Shelly Capito, West Virginia, R Steve Daines, Montana, R
Gary Peters, Michigan, D (A) In python, write a program that determines the number of states
whose two senators have the same party affiliation. (B) Also write a program that asks the user to
input a state and then displays the two senators from that state, example below. The codes should
be pulling the information from the created files in the above explanatory paragraph.

More Related Content

More from jobesshirley

urrent Attempt in Progress Identify which of the following statements.docx
urrent Attempt in Progress Identify which of the following statements.docxurrent Attempt in Progress Identify which of the following statements.docx
urrent Attempt in Progress Identify which of the following statements.docx
jobesshirley
 
Under what conditions would the cash method of accounting be advantage.docx
Under what conditions would the cash method of accounting be advantage.docxUnder what conditions would the cash method of accounting be advantage.docx
Under what conditions would the cash method of accounting be advantage.docx
jobesshirley
 
Undertaking FDI- by definition- means not investing in the MNE's home.docx
Undertaking FDI- by definition- means not investing in the MNE's home.docxUndertaking FDI- by definition- means not investing in the MNE's home.docx
Undertaking FDI- by definition- means not investing in the MNE's home.docx
jobesshirley
 
Two parents are carriers for the sickle cell trait- which exhibits cla.docx
Two parents are carriers for the sickle cell trait- which exhibits cla.docxTwo parents are carriers for the sickle cell trait- which exhibits cla.docx
Two parents are carriers for the sickle cell trait- which exhibits cla.docx
jobesshirley
 
Two Types of Data for Constructing Trees There are two major different.docx
Two Types of Data for Constructing Trees There are two major different.docxTwo Types of Data for Constructing Trees There are two major different.docx
Two Types of Data for Constructing Trees There are two major different.docx
jobesshirley
 
Two public corporations- First Engineering and Midwest Development- ea.docx
Two public corporations- First Engineering and Midwest Development- ea.docxTwo public corporations- First Engineering and Midwest Development- ea.docx
Two public corporations- First Engineering and Midwest Development- ea.docx
jobesshirley
 
Two major components make up cell membranes- molecul.docx
Two major components make up cell membranes-                   molecul.docxTwo major components make up cell membranes-                   molecul.docx
Two major components make up cell membranes- molecul.docx
jobesshirley
 
Two international banks are integrating two financial processing softw (2).docx
Two international banks are integrating two financial processing softw (2).docxTwo international banks are integrating two financial processing softw (2).docx
Two international banks are integrating two financial processing softw (2).docx
jobesshirley
 
Two independent simple random samples are taken to test the difference.docx
Two independent simple random samples are taken to test the difference.docxTwo independent simple random samples are taken to test the difference.docx
Two independent simple random samples are taken to test the difference.docx
jobesshirley
 
Tummy Foods purchased a two-year fire and extended coverage insurance.docx
Tummy Foods purchased a two-year fire and extended coverage insurance.docxTummy Foods purchased a two-year fire and extended coverage insurance.docx
Tummy Foods purchased a two-year fire and extended coverage insurance.docx
jobesshirley
 
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docxTTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
jobesshirley
 
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docxTsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
jobesshirley
 
True-False 1- Write (x) changes the value of x in the database relatio.docx
True-False 1- Write (x) changes the value of x in the database relatio.docxTrue-False 1- Write (x) changes the value of x in the database relatio.docx
True-False 1- Write (x) changes the value of x in the database relatio.docx
jobesshirley
 
True or False- Although technological advances have allowed us to bypa.docx
True or False- Although technological advances have allowed us to bypa.docxTrue or False- Although technological advances have allowed us to bypa.docx
True or False- Although technological advances have allowed us to bypa.docx
jobesshirley
 
TRUE Business systems maintain highly granular information about each.docx
TRUE Business systems maintain highly granular information about each.docxTRUE Business systems maintain highly granular information about each.docx
TRUE Business systems maintain highly granular information about each.docx
jobesshirley
 
This week's discussion asks you to watch and review material on Basic.docx
This week's discussion asks you to watch and review material on Basic.docxThis week's discussion asks you to watch and review material on Basic.docx
This week's discussion asks you to watch and review material on Basic.docx
jobesshirley
 
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docxto sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
jobesshirley
 
To minimize water loss- all land plants possess composed of wax- stoma.docx
To minimize water loss- all land plants possess composed of wax- stoma.docxTo minimize water loss- all land plants possess composed of wax- stoma.docx
To minimize water loss- all land plants possess composed of wax- stoma.docx
jobesshirley
 
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docxTitle- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
jobesshirley
 
To estimate Type II diabetic patients who take insulin to manage their.docx
To estimate Type II diabetic patients who take insulin to manage their.docxTo estimate Type II diabetic patients who take insulin to manage their.docx
To estimate Type II diabetic patients who take insulin to manage their.docx
jobesshirley
 

More from jobesshirley (20)

urrent Attempt in Progress Identify which of the following statements.docx
urrent Attempt in Progress Identify which of the following statements.docxurrent Attempt in Progress Identify which of the following statements.docx
urrent Attempt in Progress Identify which of the following statements.docx
 
Under what conditions would the cash method of accounting be advantage.docx
Under what conditions would the cash method of accounting be advantage.docxUnder what conditions would the cash method of accounting be advantage.docx
Under what conditions would the cash method of accounting be advantage.docx
 
Undertaking FDI- by definition- means not investing in the MNE's home.docx
Undertaking FDI- by definition- means not investing in the MNE's home.docxUndertaking FDI- by definition- means not investing in the MNE's home.docx
Undertaking FDI- by definition- means not investing in the MNE's home.docx
 
Two parents are carriers for the sickle cell trait- which exhibits cla.docx
Two parents are carriers for the sickle cell trait- which exhibits cla.docxTwo parents are carriers for the sickle cell trait- which exhibits cla.docx
Two parents are carriers for the sickle cell trait- which exhibits cla.docx
 
Two Types of Data for Constructing Trees There are two major different.docx
Two Types of Data for Constructing Trees There are two major different.docxTwo Types of Data for Constructing Trees There are two major different.docx
Two Types of Data for Constructing Trees There are two major different.docx
 
Two public corporations- First Engineering and Midwest Development- ea.docx
Two public corporations- First Engineering and Midwest Development- ea.docxTwo public corporations- First Engineering and Midwest Development- ea.docx
Two public corporations- First Engineering and Midwest Development- ea.docx
 
Two major components make up cell membranes- molecul.docx
Two major components make up cell membranes-                   molecul.docxTwo major components make up cell membranes-                   molecul.docx
Two major components make up cell membranes- molecul.docx
 
Two international banks are integrating two financial processing softw (2).docx
Two international banks are integrating two financial processing softw (2).docxTwo international banks are integrating two financial processing softw (2).docx
Two international banks are integrating two financial processing softw (2).docx
 
Two independent simple random samples are taken to test the difference.docx
Two independent simple random samples are taken to test the difference.docxTwo independent simple random samples are taken to test the difference.docx
Two independent simple random samples are taken to test the difference.docx
 
Tummy Foods purchased a two-year fire and extended coverage insurance.docx
Tummy Foods purchased a two-year fire and extended coverage insurance.docxTummy Foods purchased a two-year fire and extended coverage insurance.docx
Tummy Foods purchased a two-year fire and extended coverage insurance.docx
 
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docxTTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
TTYL Corp expects 2021 sales to be $125 million- In 2020- TTYL had $11.docx
 
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docxTsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
Tsunami Devastation - Sumatra- Check and double-click the 2004 Indian.docx
 
True-False 1- Write (x) changes the value of x in the database relatio.docx
True-False 1- Write (x) changes the value of x in the database relatio.docxTrue-False 1- Write (x) changes the value of x in the database relatio.docx
True-False 1- Write (x) changes the value of x in the database relatio.docx
 
True or False- Although technological advances have allowed us to bypa.docx
True or False- Although technological advances have allowed us to bypa.docxTrue or False- Although technological advances have allowed us to bypa.docx
True or False- Although technological advances have allowed us to bypa.docx
 
TRUE Business systems maintain highly granular information about each.docx
TRUE Business systems maintain highly granular information about each.docxTRUE Business systems maintain highly granular information about each.docx
TRUE Business systems maintain highly granular information about each.docx
 
This week's discussion asks you to watch and review material on Basic.docx
This week's discussion asks you to watch and review material on Basic.docxThis week's discussion asks you to watch and review material on Basic.docx
This week's discussion asks you to watch and review material on Basic.docx
 
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docxto sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
to sort the list using the Merge Sort algorithm- Pseudocode of Merge S.docx
 
To minimize water loss- all land plants possess composed of wax- stoma.docx
To minimize water loss- all land plants possess composed of wax- stoma.docxTo minimize water loss- all land plants possess composed of wax- stoma.docx
To minimize water loss- all land plants possess composed of wax- stoma.docx
 
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docxTitle- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
Title- Economic Evaluation of a Patient-Directed Music Intervention fo.docx
 
To estimate Type II diabetic patients who take insulin to manage their.docx
To estimate Type II diabetic patients who take insulin to manage their.docxTo estimate Type II diabetic patients who take insulin to manage their.docx
To estimate Type II diabetic patients who take insulin to manage their.docx
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

U-S- Senate-The file Senate113-txt contains the members of the 113 th.docx

  • 1. U.S. Senate?The file Senate113.txt contains the members of the 113 th U.S. Senate-that is, the Senate prior to the November 2014 election. Each record of the file consists of three fields-name, state, and party affiliation. 3 Some records in the file are as follows: 3We refer to anyone who is neither a Republican nor a Democrat as an independent. Richard Shelby, Alabama, R Bernard Sanders, Vermont, I Kristen Gillibrand,New York, D The file RetiredSen.txt contains the records from the file Senate113.txt for senators who left the Senate after the November 2014 election due to retirement, defeat, death, or resignation. Some records in the file are as follows: John Rockefeller, West Virginia, D Tom Coburn, oklahoma, R Car1 Levin,Michigan, D The file NewSen.txt contains records for the senators who were newly elected in November 2014 or who were appointed to fill the seats of senators who left after the November 2014 election. Some records in the file are as follows: Shelly Capito, West Virginia, R Steve Daines, Montana, R Gary Peters, Michigan, D (A) In python, write a program that determines the number of states whose two senators have the same party affiliation. (B) Also write a program that asks the user to input a state and then displays the two senators from that state, example below. The codes should be pulling the information from the created files in the above explanatory paragraph.