Skip to content

Iterating the iterated list in python #47

Closed
@GirishMadheswaran

Description

@GirishMadheswaran

first = []
second = []
for i in range(len(fruits)):
first.append(fruits[i])
#after this method i am getting the output like below
["orange", "apple", "banana"]
for item in range(len(first)):
print(first[item])
# after this method i am getting the output like this
orange
apple
banana
#i am trying to store the above values inside the second=[]
Need an solution for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions