ProgrammingModerateTCS NQT · Infosys

What is printed?

What is printed?
print(all(int(c) % 2 == 0 for c in '24680'), any(c in 'aeiou' for c in 'rhythm'))
  1. A. False False
  2. B. True True
  3. C. True False
  4. D. False True

Correct answer: C. True False

Every digit of 24680 is even, so all is True. 'rhythm' has no vowels, so any is False.

More Python Programming questions

Exams that ask this topic