Question: (I need help with coding this. I just keep getting errors. I need this in python) Write a Python function ABCs that takes in two

(I need help with coding this. I just keep getting errors. I need this in python)

(I need help with coding this. I just keep getting errors. I

need this in python) Write a Python function ABCs that takes in

Write a Python function ABCs that takes in two lists of the same length, letters and numbers, and returns a single logical value (True or False) representing the truth value of the following proposition. Read the notes below before starting to write code. Vu (even(x) vowel(x)) The domain for r is all indices within the letters and numbers lists. For example: even(1) = T if numbers 1 is even even(1) = F if numbers 1 is odd vowel(1) = Tifletters 1 is a vowel vowel(1) = Fif letters[1is a consonant . . Note 1: You can copy-paste the code declaring letters and numbers for the various visible test cases below. We strongly encourage you to do this to test your code. Note 2: You may assume that: the numbers list will consist of only positive integers (1, 2, 3, ...); the letters list will consist of only capital English letters as character strings ('A', 'B', 'C', ...); the first argument of ABCS() should be letters and the second argument should be numbers letters and numbers will be the same length; and that length will be at least 1 (no empty lists). Note 3/Hint: You can check if a variable r is in a Python list A by using: "xin A". And a useful list to define might be: vowels = ['A','E',T,'O','U'] Test Result False letters ['A','B', 'c'] numbers = [1,2,3] print(ABCs(letters, numbers)) True letters = ['A','A','A', 'A'] numbers = [1, 2, 3, 4] print(ABCs (letters, numbers)) letters = ['Z','A', 'I','I', 'B', 'U'] True numbers = [1, 20, 4 [1, 20, 4, 16, 123, 100] print (ABCs (letters, numbers))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!