Why this code is returning none at the end it should end up at the la
def index(l):
for i,x in enumerate(l):
print(i,x)
x=[1,3,5,7,8]
print(index(x))
why this code is returning none at the end
it should end up at the last element rt.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 12, 2021, 6:17 AM EST
Barathi98 reputationPosted Mar 12, 2021, 5:54 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 12, 2021, 5:55 AM EST
Barathi98 reputationPosted Mar 12, 2021, 5:59 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 12, 2021, 6:01 AM EST
Barathi98 reputationPosted Mar 12, 2021, 6:02 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 12, 2021, 6:07 AM EST
Barathi98 reputationPosted Mar 12, 2021, 6:10 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Mar 12, 2021, 6:10 AM EST
Barathi98 reputationPosted Mar 12, 2021, 6:16 AM EST
Barathi98 reputationPosted Mar 12, 2021, 6:19 AM EST