Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need it to be done through Python. Please help! Question 8: Capstone Question (4 points) The goal of this question is to include the topics

image text in transcribed

Need it to be done through Python. Please help!

Question 8: Capstone Question (4 points) The goal of this question is to include the topics you practiced above in one problem. For this question you are given a list named "list_of lists" where each of the elements in the list are lists themselves. Your task is to calculate the sum of each sublist and determine if that sum is greater than the value 8. In the case that the sum is greater than 8, your code should print, "List at index has sum: '. In the case that the sum is not greater than 8, your code should print "Sum is not large enough." To do this, we suggest that you use a "nested for loop" which is a for loop inside of a for loop. The outer for loop can traverse the items/indices of the main list while the inner for loop traverses each sublist. The list that you should use for this problem is provided for you in the cell below. In [43]: write your solution to question 8 in this cell This is the list that you must use for this problem list-of-list- [[1, 3, 2, -2], [0, 4, -3, 6], [1, 3, 2, 6, -1], [2, 5, 3, 0, -5]] #Begin first for loop here (and then put the second for loop inside of it)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 1 Lnai 9284

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Carlos Soares ,Joao Gama ,Alipio Jorge

1st Edition

3319235273, 978-3319235271

More Books

Students also viewed these Databases questions

Question

Bayesian networks cannot contain cycles. True False

Answered: 1 week ago