#Write a function valid_license that has 1 parameter - #string of characters that represents license plate. #The function returns True if the license plate is valid and False otherwise #The rules of valid license plate: #1. the license plate is at least 4 characters long and no more than 7 characters long #2. the lisence plate consists of digits and letters only. #Example 1: if the parameter is: NJNK123BHY #the function returns False #Example 2: if the parameter is : 123&9 #the function returns False #Example 3: if the parameter is: nkKu189 #the function returns True #Example 4: f the parameter is: NJ1Kp #the function returns True #Write a function count_valid, that has one parameter - list of license plates #The function finds and returns the number of valid licenses in the list #and the new list that consists of valid lincenses ONLY #Write main that reads the size of the list, generates the list of licenses from user input #and finds the number of valid licenses in the list and prints all valid lincenses #For example, if the input list is: #[NJ67-B, PAu*12, 78Jo, NJ907-kl, P999UK] #the output: #2 valid licenses #list of valid: [78Jo, P999UK] #the program is partially written for you but you can write your own def valid_license(plate): def count_valid(my_list): def main(): my_list=[] size=int(input("enter the number of plates in the list ")) for i in range(size): my_list.append(input("enter license plate ")) print("original list is ") print(my_list) #complete the program main()