Header Ads

Responsive Ads Here

is keyword V/S ==

 is keyword V/S ==



lang1 = ["Python", "Java", "Javascript"]
lang2 = ["C++","Java", "C#","Java"]
lang3 = ["C++","Java", "C#","Java"]

print(lang1 == lang2)
print(lang2 == lang3) # values are equal or not
print(lang2 is lang3) # the memory palce is same or not

Powered by Blogger.