No products in the cart.

Write a program to perform the …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write a program to perform the operation on a List . If input is[ 2, 4, 5 ,9, 8 ,6 ,3] then output must be[ 1 ,2 ,10 ,18, 4 ,3, 6]
  • 1 answers

Ankit Ydv 3 years, 10 months ago

a=[2,4,5,9,8,6,3] b=[ ] for i in range(0,2): w=a[i]//2 b.append(w) c=[ ] for j in range(2,4): x=a[j]*2 c.append(x) d=[ ] for k in range(4,6): y=a[k]//2 d.append(y) e=[ ] for l in range(6,len(a)): z=a[l]*2 e.append(z); b.extend(c) d.extend(e) b.extend(d) print(b)
http://mycbseguide.com/examin8/

Related Questions

Define packages
  • 0 answers
Write a program for swapping two numbers?
  • 0 answers
Write a program for swapping two numbers
  • 1 answers
What is alu
  • 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