C-17-Q069mediumsingle_mcq
In if char in vowels:, what type does vowels need to support?
In if char in vowels:, what type does vowels need to support?
- aIteration / membership test
- bNumeric comparison only
- cFile reading
- dNetwork access
ব্যাখ্যা
For char in vowels to work, vowels must be an iterable/container that supports membership testing, such as a list, set, or string. Numeric comparison, file reading, or network access are irrelevant to the in operator.