Write a program that prompts the user to enter a string. The…

Write a program that prompts the user to enter a string. The program should count and display the number of vowels (a, e, i, o, u) that appear in the string, regardless of case. Source Code: def count_vowels(text):     vowels = ”       1      ”     count =      2         for char in text.lower():         if char in         3       :             count += 1     return        4        user_input = input(“Enter a string: “) vowel_count =             5           (user_input) print(“Number of vowels:”, vowel_count)

What will display after the following code executes?password…

What will display after the following code executes?password = ‘ILOVEPYTHON’if password.isalpha(): print(‘Invalid, must contain one number.’)elif password.isdigit(): print(‘Invalid, must have one non-numeric character.’)elif password.isupper(): print(‘Invalid, cannot be all uppercase characters.’)else: print(‘Your password is secure!’)