This is insightful
Hi, would need your thoughts to find the diff between the two strings. Have gone through the article but somehow I could not fetch the write solutions.
c1 = 'X+v//wwAAAAmNjY0Wm+DhsDZ2TyBnLw9JDFw2YUsthQViGonKRuO/UZETzIzMTYx'
c2 = 'X+v//wwAAAAmNjY0Wm+DhsDZ2TyBnLw9JDFw2YUsthQViGonKRuO/UZETzIzMTYx'
c1 is c2 returns False but c1 == c2 returns True Not sure how to fix this error.
Hi thank you for all!
I'm begin to Python and i'm trying to make a function, with a condition that finds a row of characters following, between two list of words.
I search something like this:
List1 = ['Birmanie', 'Biélorussie', 'Bolivie', 'Brunei', 'Burkina', 'Bélize', 'Cap-Vert']
List2 = ['Belize', 'Bermudes', 'Bolivie (État plurinational de)', 'Brunéi Darussalam', 'Burkina Faso', 'Bélarus', 'Cabo Verde']
def matchingword(number_of_character_following = 3)
for number_of_characters_in_a_row in list1:
if number_of_characters_in_a_row in list2:
return possible_matching_words in []
else:
return no_matching_words in []
My result should be:
possible_matching_words = ['Biélorussie':'Bélarus', 'Biélorussie':'Brunéi Darussalam', 'Bolivie':'Bolivie (État plurinational de)', 'Brunei':'Brunéi Darussalam', 'Burkina':'Burkina Faso', 'Cap-Vert':'Cabo Verde']
How can i do please?
Gyansetu
Python is the language of the future, and Gyansetu's Python courses are the perfect gateway to this exciting world. Their expert instructors and practical approach make learning Python a breeze. Whether you're a beginner or looking to level up your skills, Gyansetu has you covered! For more info:- gyansetu.in/blogs/future-scope-of-python-in-india