0

I have a 100 element list with strings in it i want to fetch 49 element from the list without using indexing how can I do that .

I want the answer in a form of code which will fetch the 49 element without using indexing that is the only requirement of that program

  • Welcome to Stack Overflow! You seem to be asking for someone to write some code for you. Stack Overflow is a question and answer site, not a code-writing service. Please [see here](https://stackoverflow.com/help/how-to-ask) to learn how to write effective questions – azro Dec 11 '22 at 12:58
  • So, you cannot do my_list[48]? Why? – Ni3dzwi3dz Dec 11 '22 at 12:59
  • 1
    Sorry, @Vishal, this sounds like a homework problem. – VBB Dec 11 '22 at 13:00
  • possible duplicate ...Does this answer your question? [How to take the first N items from a generator or list?](https://stackoverflow.com/questions/5234090/how-to-take-the-first-n-items-from-a-generator-or-list) – Bhargav - Retarded Skills Dec 11 '22 at 13:05

0 Answers0