SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a Python program that can perform the following operations on a tuple: (1) Create a tuple
that contains the elements below: 1.2,34,56,7.8,9 (2) Use a loop to calculate the average of these
elements in the tuple, then print it out.

More Related Content

More from amanstudio07860

Write an application that ask the user to enter 2 integers, obtains.pdf
 Write an application that ask the user to enter 2 integers, obtains.pdf Write an application that ask the user to enter 2 integers, obtains.pdf
Write an application that ask the user to enter 2 integers, obtains.pdfamanstudio07860
 
Write a single C statement that corresponds to the two MIPS assembly .pdf
 Write a single C statement that corresponds to the two MIPS assembly .pdf Write a single C statement that corresponds to the two MIPS assembly .pdf
Write a single C statement that corresponds to the two MIPS assembly .pdfamanstudio07860
 
Write a recursive function elemAt that returns the ith item of the li.pdf
 Write a recursive function elemAt that returns the ith item of the li.pdf Write a recursive function elemAt that returns the ith item of the li.pdf
Write a recursive function elemAt that returns the ith item of the li.pdfamanstudio07860
 
Write a recursive function flip that takes a list of pairs, and retu.pdf
 Write a recursive function flip that takes a list of pairs, and retu.pdf Write a recursive function flip that takes a list of pairs, and retu.pdf
Write a recursive function flip that takes a list of pairs, and retu.pdfamanstudio07860
 
Write a Python module called inches2centimeters that will accept one .pdf
 Write a Python module called inches2centimeters that will accept one .pdf Write a Python module called inches2centimeters that will accept one .pdf
Write a Python module called inches2centimeters that will accept one .pdfamanstudio07860
 
Write a program that stores integers in a linked list. Please refer t.pdf
 Write a program that stores integers in a linked list. Please refer t.pdf Write a program that stores integers in a linked list. Please refer t.pdf
Write a program that stores integers in a linked list. Please refer t.pdfamanstudio07860
 
Write a program that creates 2 Lists. The first is the list of names .pdf
 Write a program that creates 2 Lists. The first is the list of names .pdf Write a program that creates 2 Lists. The first is the list of names .pdf
Write a program that creates 2 Lists. The first is the list of names .pdfamanstudio07860
 
Write a program that implements a function. The function should creat.pdf
 Write a program that implements a function. The function should creat.pdf Write a program that implements a function. The function should creat.pdf
Write a program that implements a function. The function should creat.pdfamanstudio07860
 
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 Write a program named ArrayDemo that stores an array of 10 integers. .pdf Write a program named ArrayDemo that stores an array of 10 integers. .pdf
Write a program named ArrayDemo that stores an array of 10 integers. .pdfamanstudio07860
 
Write a Java program to represent a family tree. A sample family tree.pdf
 Write a Java program to represent a family tree. A sample family tree.pdf Write a Java program to represent a family tree. A sample family tree.pdf
Write a Java program to represent a family tree. A sample family tree.pdfamanstudio07860
 
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdfamanstudio07860
 
Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf
 Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf
Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdfamanstudio07860
 
With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf
 With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf
With FOB+DA+ shipping as the terms of trade, a group of two people t.pdfamanstudio07860
 
With careful auscultation, vou can often detect splitting of the hear.pdf
 With careful auscultation, vou can often detect splitting of the hear.pdf With careful auscultation, vou can often detect splitting of the hear.pdf
With careful auscultation, vou can often detect splitting of the hear.pdfamanstudio07860
 
Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf
 Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf
Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdfamanstudio07860
 
Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf
 Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf
Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdfamanstudio07860
 
Write a function that will ask the user to enter the price of a commo.pdf
 Write a function that will ask the user to enter the price of a commo.pdf Write a function that will ask the user to enter the price of a commo.pdf
Write a function that will ask the user to enter the price of a commo.pdfamanstudio07860
 
Write a java code to construct an AVL tree by inserting the following.pdf
 Write a java code to construct an AVL tree by inserting the following.pdf Write a java code to construct an AVL tree by inserting the following.pdf
Write a java code to construct an AVL tree by inserting the following.pdfamanstudio07860
 
Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf
 Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf
Why was Pluto demoted to a Dwart Planet What is required of a celest.pdfamanstudio07860
 
Why is it important that FINANCIAL accounting provide a common set of.pdf
 Why is it important that FINANCIAL accounting provide a common set of.pdf Why is it important that FINANCIAL accounting provide a common set of.pdf
Why is it important that FINANCIAL accounting provide a common set of.pdfamanstudio07860
 

More from amanstudio07860 (20)

Write an application that ask the user to enter 2 integers, obtains.pdf
 Write an application that ask the user to enter 2 integers, obtains.pdf Write an application that ask the user to enter 2 integers, obtains.pdf
Write an application that ask the user to enter 2 integers, obtains.pdf
 
Write a single C statement that corresponds to the two MIPS assembly .pdf
 Write a single C statement that corresponds to the two MIPS assembly .pdf Write a single C statement that corresponds to the two MIPS assembly .pdf
Write a single C statement that corresponds to the two MIPS assembly .pdf
 
Write a recursive function elemAt that returns the ith item of the li.pdf
 Write a recursive function elemAt that returns the ith item of the li.pdf Write a recursive function elemAt that returns the ith item of the li.pdf
Write a recursive function elemAt that returns the ith item of the li.pdf
 
Write a recursive function flip that takes a list of pairs, and retu.pdf
 Write a recursive function flip that takes a list of pairs, and retu.pdf Write a recursive function flip that takes a list of pairs, and retu.pdf
Write a recursive function flip that takes a list of pairs, and retu.pdf
 
Write a Python module called inches2centimeters that will accept one .pdf
 Write a Python module called inches2centimeters that will accept one .pdf Write a Python module called inches2centimeters that will accept one .pdf
Write a Python module called inches2centimeters that will accept one .pdf
 
Write a program that stores integers in a linked list. Please refer t.pdf
 Write a program that stores integers in a linked list. Please refer t.pdf Write a program that stores integers in a linked list. Please refer t.pdf
Write a program that stores integers in a linked list. Please refer t.pdf
 
Write a program that creates 2 Lists. The first is the list of names .pdf
 Write a program that creates 2 Lists. The first is the list of names .pdf Write a program that creates 2 Lists. The first is the list of names .pdf
Write a program that creates 2 Lists. The first is the list of names .pdf
 
Write a program that implements a function. The function should creat.pdf
 Write a program that implements a function. The function should creat.pdf Write a program that implements a function. The function should creat.pdf
Write a program that implements a function. The function should creat.pdf
 
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 Write a program named ArrayDemo that stores an array of 10 integers. .pdf Write a program named ArrayDemo that stores an array of 10 integers. .pdf
Write a program named ArrayDemo that stores an array of 10 integers. .pdf
 
Write a Java program to represent a family tree. A sample family tree.pdf
 Write a Java program to represent a family tree. A sample family tree.pdf Write a Java program to represent a family tree. A sample family tree.pdf
Write a Java program to represent a family tree. A sample family tree.pdf
 
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
Worksheet No. 3 - Upper left side of the worksheet, prepare the State.pdf
 
Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf
 Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf
Wones Trading Card Inventory Purchases On April 15, Wong sells 4,000.pdf
 
With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf
 With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf
With FOB+DA+ shipping as the terms of trade, a group of two people t.pdf
 
With careful auscultation, vou can often detect splitting of the hear.pdf
 With careful auscultation, vou can often detect splitting of the hear.pdf With careful auscultation, vou can often detect splitting of the hear.pdf
With careful auscultation, vou can often detect splitting of the hear.pdf
 
Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf
 Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf
Wildhorse Inc. issued $928,000 of 10 -year, 3 bonds on January 1,202.pdf
 
Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf
 Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf
Wildhorse Ltd. is a private company reporting under ASPE. Its income .pdf
 
Write a function that will ask the user to enter the price of a commo.pdf
 Write a function that will ask the user to enter the price of a commo.pdf Write a function that will ask the user to enter the price of a commo.pdf
Write a function that will ask the user to enter the price of a commo.pdf
 
Write a java code to construct an AVL tree by inserting the following.pdf
 Write a java code to construct an AVL tree by inserting the following.pdf Write a java code to construct an AVL tree by inserting the following.pdf
Write a java code to construct an AVL tree by inserting the following.pdf
 
Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf
 Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf
Why was Pluto demoted to a Dwart Planet What is required of a celest.pdf
 
Why is it important that FINANCIAL accounting provide a common set of.pdf
 Why is it important that FINANCIAL accounting provide a common set of.pdf Why is it important that FINANCIAL accounting provide a common set of.pdf
Why is it important that FINANCIAL accounting provide a common set of.pdf
 

Recently uploaded

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

Write a Python program that can perform the following operations on a.pdf

  • 1. Write a Python program that can perform the following operations on a tuple: (1) Create a tuple that contains the elements below: 1.2,34,56,7.8,9 (2) Use a loop to calculate the average of these elements in the tuple, then print it out.