SlideShare a Scribd company logo
[Python]
9. Show an example of three sequential and independent if blocks (make up your own).
Explain how they would work differently if connected with elif statements
.
10. Write a program with two string variables, each set to user input. Test the strings using
string methods, the in operator, or any other tests that results in a Boolean value. Use an if
block to display different pieces of the string based on the Boolean values. Show your code

More Related Content

More from Nicholas3uGPooled

1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
Nicholas3uGPooled
 
1- Joe Smith works in the IT department of a large industrial company-.docx
1- Joe Smith works in the IT department of a large industrial company-.docx1- Joe Smith works in the IT department of a large industrial company-.docx
1- Joe Smith works in the IT department of a large industrial company-.docx
Nicholas3uGPooled
 
1- In order to beat- the heart requires A- nervous system input B- h.docx
1- In order to beat- the heart requires  A- nervous system input  B- h.docx1- In order to beat- the heart requires  A- nervous system input  B- h.docx
1- In order to beat- the heart requires A- nervous system input B- h.docx
Nicholas3uGPooled
 
1- In terms of the environment of early earth- what resulted from the.docx
1- In terms of the environment of early earth- what resulted from the.docx1- In terms of the environment of early earth- what resulted from the.docx
1- In terms of the environment of early earth- what resulted from the.docx
Nicholas3uGPooled
 
1- Identify one job position to develop- compentency based job descrip.docx
1- Identify one job position to develop- compentency based job descrip.docx1- Identify one job position to develop- compentency based job descrip.docx
1- Identify one job position to develop- compentency based job descrip.docx
Nicholas3uGPooled
 
1- Implement a Python function that accepts an positive integer and re.docx
1- Implement a Python function that accepts an positive integer and re.docx1- Implement a Python function that accepts an positive integer and re.docx
1- Implement a Python function that accepts an positive integer and re.docx
Nicholas3uGPooled
 
1- How may have the complex lifestyle of digentic trematodes evolved-.docx
1- How may have the complex lifestyle of digentic trematodes evolved-.docx1- How may have the complex lifestyle of digentic trematodes evolved-.docx
1- How may have the complex lifestyle of digentic trematodes evolved-.docx
Nicholas3uGPooled
 
1- identify and discuss the two most imporant factors in population dy (1).docx
1- identify and discuss the two most imporant factors in population dy (1).docx1- identify and discuss the two most imporant factors in population dy (1).docx
1- identify and discuss the two most imporant factors in population dy (1).docx
Nicholas3uGPooled
 
1- How does ancestry and race play into disease genetics- 2- How does.docx
1- How does ancestry and race play into disease genetics- 2- How does.docx1- How does ancestry and race play into disease genetics- 2- How does.docx
1- How does ancestry and race play into disease genetics- 2- How does.docx
Nicholas3uGPooled
 
1- Historical Development of Computing and Information Technology a) H.docx
1- Historical Development of Computing and Information Technology a) H.docx1- Historical Development of Computing and Information Technology a) H.docx
1- Historical Development of Computing and Information Technology a) H.docx
Nicholas3uGPooled
 
1- How has examining your beliefs- assumptions- and values related to.docx
1- How has examining your beliefs- assumptions- and values related to.docx1- How has examining your beliefs- assumptions- and values related to.docx
1- How has examining your beliefs- assumptions- and values related to.docx
Nicholas3uGPooled
 
1- Given the Trilemma- if a country has the free flow of capital and a.docx
1- Given the Trilemma- if a country has the free flow of capital and a.docx1- Given the Trilemma- if a country has the free flow of capital and a.docx
1- Given the Trilemma- if a country has the free flow of capital and a.docx
Nicholas3uGPooled
 
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
Nicholas3uGPooled
 
1- Give any relevant literature article pertaining to the patient cult.docx
1- Give any relevant literature article pertaining to the patient cult.docx1- Give any relevant literature article pertaining to the patient cult.docx
1- Give any relevant literature article pertaining to the patient cult.docx
Nicholas3uGPooled
 
1- Gas exchange occurs in which part of the respiratory system- Select.docx
1- Gas exchange occurs in which part of the respiratory system- Select.docx1- Gas exchange occurs in which part of the respiratory system- Select.docx
1- Gas exchange occurs in which part of the respiratory system- Select.docx
Nicholas3uGPooled
 
1- Do you believe that technological determinism is a bad thing for bu.docx
1- Do you believe that technological determinism is a bad thing for bu.docx1- Do you believe that technological determinism is a bad thing for bu.docx
1- Do you believe that technological determinism is a bad thing for bu.docx
Nicholas3uGPooled
 
1- Explain the purpose of change management and how it applies to infr.docx
1- Explain the purpose of change management and how it applies to infr.docx1- Explain the purpose of change management and how it applies to infr.docx
1- Explain the purpose of change management and how it applies to infr.docx
Nicholas3uGPooled
 
1- Develop a timeline or or table that captures the evolution of quali.docx
1- Develop a timeline or or table that captures the evolution of quali.docx1- Develop a timeline or or table that captures the evolution of quali.docx
1- Develop a timeline or or table that captures the evolution of quali.docx
Nicholas3uGPooled
 
1- During which of the following phases is the Moon's dark portion bri.docx
1- During which of the following phases is the Moon's dark portion bri.docx1- During which of the following phases is the Moon's dark portion bri.docx
1- During which of the following phases is the Moon's dark portion bri.docx
Nicholas3uGPooled
 
1- Discuss the scientific merit of various integrative modalities- 2-.docx
1- Discuss the scientific merit of various integrative modalities-  2-.docx1- Discuss the scientific merit of various integrative modalities-  2-.docx
1- Discuss the scientific merit of various integrative modalities- 2-.docx
Nicholas3uGPooled
 

More from Nicholas3uGPooled (20)

1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
1- Pandoravirus salinus is virus that infects amoeba- is very large (1.docx
 
1- Joe Smith works in the IT department of a large industrial company-.docx
1- Joe Smith works in the IT department of a large industrial company-.docx1- Joe Smith works in the IT department of a large industrial company-.docx
1- Joe Smith works in the IT department of a large industrial company-.docx
 
1- In order to beat- the heart requires A- nervous system input B- h.docx
1- In order to beat- the heart requires  A- nervous system input  B- h.docx1- In order to beat- the heart requires  A- nervous system input  B- h.docx
1- In order to beat- the heart requires A- nervous system input B- h.docx
 
1- In terms of the environment of early earth- what resulted from the.docx
1- In terms of the environment of early earth- what resulted from the.docx1- In terms of the environment of early earth- what resulted from the.docx
1- In terms of the environment of early earth- what resulted from the.docx
 
1- Identify one job position to develop- compentency based job descrip.docx
1- Identify one job position to develop- compentency based job descrip.docx1- Identify one job position to develop- compentency based job descrip.docx
1- Identify one job position to develop- compentency based job descrip.docx
 
1- Implement a Python function that accepts an positive integer and re.docx
1- Implement a Python function that accepts an positive integer and re.docx1- Implement a Python function that accepts an positive integer and re.docx
1- Implement a Python function that accepts an positive integer and re.docx
 
1- How may have the complex lifestyle of digentic trematodes evolved-.docx
1- How may have the complex lifestyle of digentic trematodes evolved-.docx1- How may have the complex lifestyle of digentic trematodes evolved-.docx
1- How may have the complex lifestyle of digentic trematodes evolved-.docx
 
1- identify and discuss the two most imporant factors in population dy (1).docx
1- identify and discuss the two most imporant factors in population dy (1).docx1- identify and discuss the two most imporant factors in population dy (1).docx
1- identify and discuss the two most imporant factors in population dy (1).docx
 
1- How does ancestry and race play into disease genetics- 2- How does.docx
1- How does ancestry and race play into disease genetics- 2- How does.docx1- How does ancestry and race play into disease genetics- 2- How does.docx
1- How does ancestry and race play into disease genetics- 2- How does.docx
 
1- Historical Development of Computing and Information Technology a) H.docx
1- Historical Development of Computing and Information Technology a) H.docx1- Historical Development of Computing and Information Technology a) H.docx
1- Historical Development of Computing and Information Technology a) H.docx
 
1- How has examining your beliefs- assumptions- and values related to.docx
1- How has examining your beliefs- assumptions- and values related to.docx1- How has examining your beliefs- assumptions- and values related to.docx
1- How has examining your beliefs- assumptions- and values related to.docx
 
1- Given the Trilemma- if a country has the free flow of capital and a.docx
1- Given the Trilemma- if a country has the free flow of capital and a.docx1- Given the Trilemma- if a country has the free flow of capital and a.docx
1- Given the Trilemma- if a country has the free flow of capital and a.docx
 
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
1- Give a definition of heteroscedasticity- 2- For what reasons does h.docx
 
1- Give any relevant literature article pertaining to the patient cult.docx
1- Give any relevant literature article pertaining to the patient cult.docx1- Give any relevant literature article pertaining to the patient cult.docx
1- Give any relevant literature article pertaining to the patient cult.docx
 
1- Gas exchange occurs in which part of the respiratory system- Select.docx
1- Gas exchange occurs in which part of the respiratory system- Select.docx1- Gas exchange occurs in which part of the respiratory system- Select.docx
1- Gas exchange occurs in which part of the respiratory system- Select.docx
 
1- Do you believe that technological determinism is a bad thing for bu.docx
1- Do you believe that technological determinism is a bad thing for bu.docx1- Do you believe that technological determinism is a bad thing for bu.docx
1- Do you believe that technological determinism is a bad thing for bu.docx
 
1- Explain the purpose of change management and how it applies to infr.docx
1- Explain the purpose of change management and how it applies to infr.docx1- Explain the purpose of change management and how it applies to infr.docx
1- Explain the purpose of change management and how it applies to infr.docx
 
1- Develop a timeline or or table that captures the evolution of quali.docx
1- Develop a timeline or or table that captures the evolution of quali.docx1- Develop a timeline or or table that captures the evolution of quali.docx
1- Develop a timeline or or table that captures the evolution of quali.docx
 
1- During which of the following phases is the Moon's dark portion bri.docx
1- During which of the following phases is the Moon's dark portion bri.docx1- During which of the following phases is the Moon's dark portion bri.docx
1- During which of the following phases is the Moon's dark portion bri.docx
 
1- Discuss the scientific merit of various integrative modalities- 2-.docx
1- Discuss the scientific merit of various integrative modalities-  2-.docx1- Discuss the scientific merit of various integrative modalities-  2-.docx
1- Discuss the scientific merit of various integrative modalities- 2-.docx
 

Recently uploaded

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
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
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
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
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
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
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
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
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
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
 

Recently uploaded (20)

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
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
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
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
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
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
 

-Python- 9- Show an example of three sequential and independent if blo.docx

  • 1. [Python] 9. Show an example of three sequential and independent if blocks (make up your own). Explain how they would work differently if connected with elif statements . 10. Write a program with two string variables, each set to user input. Test the strings using string methods, the in operator, or any other tests that results in a Boolean value. Use an if block to display different pieces of the string based on the Boolean values. Show your code