Python - Murray State University

function is a built-in function that returns the number of elements in an iterable such as a list, string, dictionary and so forth. We are slicing the string (my_string[x]) to compare each consecutive character to the query character (‘Q’). It we use an index that points past the end of the string (the position ................
................