Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1-Python CountNog.Productos ghest grade Editor Bed WM Data repressie Problem Statement Givena listingers wat loop tough every element in the lot to find the product

image text in transcribed
image text in transcribed
image text in transcribed
1-Python CountNog.Productos ghest grade Editor Bed WM Data repressie Problem Statement Givena listingers wat loop tough every element in the lot to find the product of positive integers and the count of all negative inters The code to get the ti provided for you. The first line of code provided gets these of the cost. The remaining lines of code provided elements of the The provided data propre code in the values and createst of its for you Sample Input 1 11 in First le length of the list 12 Input length intit 14 st in your ne 15 inutit. 16 17 the loop control variables the one wa fursation Indes 1 wille loomine 11 At the ver for dette our liv ne listened in the rating lines 23 tulistada 33 Aeria, whether that the 38 Joon, index boedex 1 22 29 30 STMT VOR CODE 31 Sample Output 1 1-Python-CountNeg-ProductPos Highest grade Sample Output 1 Product of positives: 6 Count of negatives: 1 Sample Input 2 5 -1 - 1 20 5 Sample Output 2 Product of positives: 100 Count of negatives: 3 Submit 2-Python-DoubleListValues Highest grade Problem Statement Given a list of integers, print out a new list with each value doubled. Input The first input is the size (N) of the list. Each remaining input is an element of the list. Hint: Before solving this problem, create a list by using a while loop that reads in the input values N times and appends the input values to this list. To do this, you could copy/paste code from the previous problem; we encourage you, however, to type the code in yourself. Sample Input 1 5 1 2 3 4 Submit

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

Step: 3

blur-text-image

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

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions