May-01-2020, 10:34 AM
(This post was last modified: May-01-2020, 10:48 AM by pyzyx3qwerty.)
If you want to print the same element in both lists, you can do:
for i in list1 : if i in list2 : #your code
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs