Find Python!#
Define a function find_python that takes a list of programming languages as a list of strings. Write a for loop with a break statement and return the index of an element in language_list that is the same as ‘Python'. If 'Python' isn’t in the list, your function should return -1.
(It’s possible, of course, to do this without a break statement. But please try to use one!)
Sample Input 1:
['Python', 'Java', 'C++']
Sample Output 1:
0
Sample Input 2:
['R', 'Fortran', 'Python', 'SQL']
Sample Output 2:
2