How can i get the common elements in the first two list and save to a new list in python 3?

前端 未结 0 1938
滥情空心
滥情空心 2021-01-02 19:14

list1 = [input("Enter the values for the first list: ")] list2 = [input("Enter the values for the second list: ")] print(list1) print(list2) list3 = [] f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题