Contact: aviboots(AT)netvision.net.il
39,890 questions
51,817 answers
573 users
lst = ["python", "java", "c++", "c", "c#", "javascript"] index = lst.index('c') lst = lst[:index] print(lst) ''' run: ['python', 'java', 'c++'] '''