SlideShare ist ein Scribd-Unternehmen logo
1 von 1
1. Write a Python program to print the following string in a specific format (see the picture
below) String: "Twinkle Twinkle: little How I wonder what you are! Up above the world so
high: Like a diamond in the sky Twinkle Twinkle: little star: How I wonder what you are." 2.
Can "Twinkle: Twinkle: little star" be performed as a musical cannon? 3. Write a Python
program to count the number (occurrences) of t -s (upper and lower cases) in the string. See
Chapters 2&3 for rules on testing strings. 4. Write a Python program to count the number
(occurrences) of i's, w's and l's in the string. See Chapters 2&3 for rules on counting. 5. Print out
your program and the execution of your program as MS-WORD and hand them in (upload
them).

Weitere ähnliche Inhalte

Mehr von pandoragardner78605

1- What is the advantage of the high surface-area-to-volume ratio of t.docx
1- What is the advantage of the high surface-area-to-volume ratio of t.docx1- What is the advantage of the high surface-area-to-volume ratio of t.docx
1- What is the advantage of the high surface-area-to-volume ratio of t.docx
pandoragardner78605
 
1- The flow of information between stakeholder groups (UK- SA and in-c.docx
1- The flow of information between stakeholder groups (UK- SA and in-c.docx1- The flow of information between stakeholder groups (UK- SA and in-c.docx
1- The flow of information between stakeholder groups (UK- SA and in-c.docx
pandoragardner78605
 
1- Microbiology became an aceepted branch of 3- Which of these three l.docx
1- Microbiology became an aceepted branch of 3- Which of these three l.docx1- Microbiology became an aceepted branch of 3- Which of these three l.docx
1- Microbiology became an aceepted branch of 3- Which of these three l.docx
pandoragardner78605
 

Mehr von pandoragardner78605 (20)

1- What is the advantage of the high surface-area-to-volume ratio of t.docx
1- What is the advantage of the high surface-area-to-volume ratio of t.docx1- What is the advantage of the high surface-area-to-volume ratio of t.docx
1- What is the advantage of the high surface-area-to-volume ratio of t.docx
 
1- The US Senate consists of two senators from each of the 50 states-.docx
1- The US Senate consists of two senators from each of the 50 states-.docx1- The US Senate consists of two senators from each of the 50 states-.docx
1- The US Senate consists of two senators from each of the 50 states-.docx
 
1- The statement P(n) is given- P(n)-k-1nk2k-(n1)2n+1+2 a) Write the s.docx
1- The statement P(n) is given- P(n)-k-1nk2k-(n1)2n+1+2 a) Write the s.docx1- The statement P(n) is given- P(n)-k-1nk2k-(n1)2n+1+2 a) Write the s.docx
1- The statement P(n) is given- P(n)-k-1nk2k-(n1)2n+1+2 a) Write the s.docx
 
1- The red alga Chondrus crispus feels slick to the touch because its.docx
1- The red alga Chondrus crispus feels slick to the touch because its.docx1- The red alga Chondrus crispus feels slick to the touch because its.docx
1- The red alga Chondrus crispus feels slick to the touch because its.docx
 
1- The diagram below shows the relative concentration of oxygen and ca.docx
1- The diagram below shows the relative concentration of oxygen and ca.docx1- The diagram below shows the relative concentration of oxygen and ca.docx
1- The diagram below shows the relative concentration of oxygen and ca.docx
 
1- The flow of information between stakeholder groups (UK- SA and in-c.docx
1- The flow of information between stakeholder groups (UK- SA and in-c.docx1- The flow of information between stakeholder groups (UK- SA and in-c.docx
1- The flow of information between stakeholder groups (UK- SA and in-c.docx
 
1- separate 2020 financial statements for Parent and Subsidiary are pr.docx
1- separate 2020 financial statements for Parent and Subsidiary are pr.docx1- separate 2020 financial statements for Parent and Subsidiary are pr.docx
1- separate 2020 financial statements for Parent and Subsidiary are pr.docx
 
1- Prokaryote vs- Eukaryote- Discuss the differences in cellular makeu.docx
1- Prokaryote vs- Eukaryote- Discuss the differences in cellular makeu.docx1- Prokaryote vs- Eukaryote- Discuss the differences in cellular makeu.docx
1- Prokaryote vs- Eukaryote- Discuss the differences in cellular makeu.docx
 
1- Our Solar System is located in the center of Andromeda Galaxy- Grou.docx
1- Our Solar System is located in the center of Andromeda Galaxy- Grou.docx1- Our Solar System is located in the center of Andromeda Galaxy- Grou.docx
1- Our Solar System is located in the center of Andromeda Galaxy- Grou.docx
 
1- Nod factors are produced by legume plant roots to attract rhizobia.docx
1- Nod factors are produced by legume plant roots to attract rhizobia.docx1- Nod factors are produced by legume plant roots to attract rhizobia.docx
1- Nod factors are produced by legume plant roots to attract rhizobia.docx
 
1- Monoculture is a-the situation found most often in natural systems.docx
1- Monoculture is a-the situation found most often in natural systems.docx1- Monoculture is a-the situation found most often in natural systems.docx
1- Monoculture is a-the situation found most often in natural systems.docx
 
1- Microbiology became an aceepted branch of 3- Which of these three l.docx
1- Microbiology became an aceepted branch of 3- Which of these three l.docx1- Microbiology became an aceepted branch of 3- Which of these three l.docx
1- Microbiology became an aceepted branch of 3- Which of these three l.docx
 
1- List 2 Asset Accounts- 2 Liability Accounts- and 2 Equity Accounts.docx
1- List 2 Asset Accounts- 2 Liability Accounts- and 2 Equity Accounts.docx1- List 2 Asset Accounts- 2 Liability Accounts- and 2 Equity Accounts.docx
1- List 2 Asset Accounts- 2 Liability Accounts- and 2 Equity Accounts.docx
 
1- Look at the historical time table above and use your knowledge of b.docx
1- Look at the historical time table above and use your knowledge of b.docx1- Look at the historical time table above and use your knowledge of b.docx
1- Look at the historical time table above and use your knowledge of b.docx
 
1- Identify five stars that can never be seen from the latitude at whi.docx
1- Identify five stars that can never be seen from the latitude at whi.docx1- Identify five stars that can never be seen from the latitude at whi.docx
1- Identify five stars that can never be seen from the latitude at whi.docx
 
1- Identify a specific environmental health issue- within the last 10.docx
1- Identify a specific environmental health issue- within the last 10.docx1- Identify a specific environmental health issue- within the last 10.docx
1- Identify a specific environmental health issue- within the last 10.docx
 
1- Find the steady state probabilities (pk) for an M-M-1-GD-N- system.docx
1- Find the steady state probabilities (pk) for an M-M-1-GD-N- system.docx1- Find the steady state probabilities (pk) for an M-M-1-GD-N- system.docx
1- Find the steady state probabilities (pk) for an M-M-1-GD-N- system.docx
 
1- Fertilization is a result of many membrane fusion events- What are.docx
1- Fertilization is a result of many membrane fusion events- What are.docx1- Fertilization is a result of many membrane fusion events- What are.docx
1- Fertilization is a result of many membrane fusion events- What are.docx
 
1- Examine the main ways that plants and animals adapt to the pressure.docx
1- Examine the main ways that plants and animals adapt to the pressure.docx1- Examine the main ways that plants and animals adapt to the pressure.docx
1- Examine the main ways that plants and animals adapt to the pressure.docx
 
1- Draw a flow chart of Dabbawalas operations and explain the process.docx
1- Draw a flow chart of Dabbawalas operations and explain the process.docx1- Draw a flow chart of Dabbawalas operations and explain the process.docx
1- Draw a flow chart of Dabbawalas operations and explain the process.docx
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 

1- Write a Python program to print the following string in a specific.docx

  • 1. 1. Write a Python program to print the following string in a specific format (see the picture below) String: "Twinkle Twinkle: little How I wonder what you are! Up above the world so high: Like a diamond in the sky Twinkle Twinkle: little star: How I wonder what you are." 2. Can "Twinkle: Twinkle: little star" be performed as a musical cannon? 3. Write a Python program to count the number (occurrences) of t -s (upper and lower cases) in the string. See Chapters 2&3 for rules on testing strings. 4. Write a Python program to count the number (occurrences) of i's, w's and l's in the string. See Chapters 2&3 for rules on counting. 5. Print out your program and the execution of your program as MS-WORD and hand them in (upload them).