Computer Science, asked by ghaliaax, 5 months ago

how can you print the third and the fourth items in the list example

Answers

Answered by Braɪnlyємρєяσя
9

Using for loop : Traverse from 0 to len(list) and print all elements of the list one by one uisng a for loop, this is the standard practice of doing it. ...

Without using loops: * symbol is use to print the list elements in a single line with space.

\huge{Hope\;it\;helps\;u}\huge{Hope\;it\;helps\;u}

Answered by lalitnit
0

Answer:

# Python Program to print Elements in a List

Fruits = ['Apple', 'Orange', 'Grape', 'Banana']

print("Element in this List are : ")

for fruit in Fruits:

print(fruit)

Similar questions