It's searching for the string 'java' among the strings 'Java', 'C++', and 'Python'. String equality is case-sensitive, that's why 'java' is different from 'Java' ('j' and 'J' are different characters).
So:
'java' == 'C++' -> False
'java' == 'Java' -> False
'java' == 'Python' -> False
Which leads to 'java' in ['C++', 'Java', 'Python'] being False, and the else branch is executed