ProgrammingHardTCS NQT · Infosys

What is printed?

What is printed?
print(all(c.islower() for c in 'abc'), any(c.isdigit() for c in 'abc'), 'abc'.isascii() and 'é'.isascii())
  1. A. True True False
  2. B. True False True
  3. C. True False False
  4. D. False False False

Correct answer: C. True False False

Every letter in abc is lowercase, and none is a digit. The ASCII test is False because é is not ASCII.

More Python Programming questions

Exams that ask this topic