Write python code in the boxes, based on the given questions and lists. List_of_Companies = ['Apple', 'Samsung', 'Dell', 'HP', 'Huawei'] List_of_Languages = ['C++', 'Python', 'Java', 'PHP'] List_of_Ages = [20, 65, 78, 34, 55, 67, 12] Write the Code Question Count the number of items in the List_of_Ages. In one print statement print the items of the two lists, List_of_ Languages and List_of_Ages. Return the language 'Python' using negative value index from List_of_Languages. Return the sum of items in the List_of_Ages. Sort the items in the List_of_Languages in descending order. Duplicate the List_of_Languages for 7 times. Use slicing to return the items 'Huawei', 'HP', 'Dell'. from the List_of_Companies

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter8: Advanced Data Handling Concepts
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

(). 

 

 

Write python code in the boxes, based on the given questions and lists.
List_of_Companies = ['Apple', 'Samsung', 'Dell', 'HP', 'Huawei']
List_of_Languages = ['C++', 'Python', 'Java', 'PHP']
List_of_Ages = [20, 65, 78, 34, 55, 67, 12]
Write the Code
Question
Count the number of items in the List_of_Ages.
In one print statement print the items of the two
lists, List_of_ Languages and List_of_Ages.
Return the language 'Python' using negative value
index from List_of_Languages.
Return the sum of items in the List_of_Ages.
Sort the items in the List_of_Languages in
descending order.
Duplicate the List_of_Languages for 7 times.
Use slicing to return the items 'Huawei', 'HP', 'Dell'.
from the List_of_Companies
Transcribed Image Text:Write python code in the boxes, based on the given questions and lists. List_of_Companies = ['Apple', 'Samsung', 'Dell', 'HP', 'Huawei'] List_of_Languages = ['C++', 'Python', 'Java', 'PHP'] List_of_Ages = [20, 65, 78, 34, 55, 67, 12] Write the Code Question Count the number of items in the List_of_Ages. In one print statement print the items of the two lists, List_of_ Languages and List_of_Ages. Return the language 'Python' using negative value index from List_of_Languages. Return the sum of items in the List_of_Ages. Sort the items in the List_of_Languages in descending order. Duplicate the List_of_Languages for 7 times. Use slicing to return the items 'Huawei', 'HP', 'Dell'. from the List_of_Companies
Expert Solution
steps

Step by step

Solved in 8 steps with 14 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning