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?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the output of print(k) in the following Python code snippet?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!