Exercise: Write a custom function that takes a single word in the form of a string and returns whether it is a well-formatted token. For the purposes of this exercise, a well-formatted token is one that only contains lowercase letters, digits, and/or apostrophes ('), and does not contain uppercase letters (ABC...), punctuation (?, ., ;, -), special characters (@, #, %...), or white space (space or tab). For example, "He11o!" is not well-formatted, nor is "why?", "H1", or "Johns". But "me", "you", "a11", "he11o", and "why" are all well-formatted tokens. Your function should return True if the string is a well-formatted token and False if it is not.
def is_well_formatted(token): # put your code here
pass