- A IndexError
- B A random day from all the seven days
- C A random day from all the days except Sunday
- D A random day from all the days except Monday
Python Programming Language MCQ Python Random Module MCQ
⚠ Report ✓ Question Verified Copy Link
import random x = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] print(x[random.randint(0, len(x) - 1)])
Learn More MCQ Questions from Python Programming Language MCQ Python Random Module MCQ