Computer Science, asked by epic48405, 1 month ago

Given that l = [1,3,5,7,9], print 2, 4, 6, 8, 10 using l and a for loop.

Python script using List and for loop not range.

Answers

Answered by parora20
4

Answer:

for i in range(1,11,2):

if i%2==0:

print (even)

Answered by atrs7391
3

"""

Project Type: Brainly Answer

Date Created: 11-02-2021

Date Edited Last Time: ---NIL---

Question Link: https://brainly.in/question/34988167

Question: Given that l = [1, 3, 5, 7, 9], print 2, 4, 6, 8, 10 using l and a for loop.

Python script using List and for loop not range.

Program Created By: atrs7391

Programming Language: Python

Language version (When program created or last edited): Python 3.9.1

"""

l = [1, 3, 5, 7, 9]

for i in l:

   print(i + 1, end=" ")

Similar questions