Đ Đức Trọng Member Sep 20, 2021 #1 What is the output of print(k) in the following Python code snippet? Code: k = [print(i) for i in my_string if i not in "aeiou"] print(k) A. all characters of my_string that aren’t vowels B. a list of Nones C. list of Trues D. list of Falses
What is the output of print(k) in the following Python code snippet? Code: k = [print(i) for i in my_string if i not in "aeiou"] print(k) A. all characters of my_string that aren’t vowels B. a list of Nones C. list of Trues D. list of Falses
Đ Đinh Thu Trang New member Sep 20, 2021 #2 Answer: b Explanation: print() returns None. Upvote 0 Downvote