O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
list1=eval(input("Enter list 1 : ")) list2=eval(input("Enter list 2 : ")) index=-1 if(len(list1)!=len(list2)): print("Length of both list are not same") else: for a in range(0,len(list1)): if list1[a]!=list2[a]: index=a break if index>=0: print("the elements are differ and the first index where it differ is :",index) else: print("The list elements are same")
▶ Run Code
🖥 Output: