No products in the cart.

Sahil written python code to read …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Sahil written python code to read list of n integers (positive as well as negative). He created two lists, one having all positive numbers and the other having all negative numbers from the given list.Help him to complete the given code. List = [ ] Pos = [ ] Neg = [ ] Num = int(input(“Enter the total number of list elements : “)) for i in range (1 , ______): # Statement 1 value=int(input(“Enter the value of element: “)) for j in range (Num): if ( List[ ___ ] >=0): # statement 2 Pos.append( _____ ) #statement 3 else: Neg._____( List[j]) # statement 4 print(“Element in positive list is: “, _____ ) # statement 5 print(“Element in negative list is: “, Neg) i) What value will be place at statement 1? a) Num b) List c) Num + 1 d) len(List) ii) What value will be place at statement 2? a) i b) j c) Pos d)Neg iii) What value will be place at statement 3? a) List[j] b) List[i] c) List[J] d) List[I] iv) What value will be place at statement 4? a) add b) insert c)append d) extend v) What value will be place at statement 5? a) Pos b) List c) Num d) List[j]
  • 0 answers
http://mycbseguide.com/examin8/

Related Questions

What is alu
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers
Define packages
  • 0 answers
Write a program for swapping two numbers
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App