What is the result when you execute the below Python code:
month_list=[‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, ‘May’]
print(month_list[8:])
(1) IndexError
(2) []
(3) ‘Mar’
(4) ‘Aug’
What’s the correct result from the above 4 options?
Random Python Tips and Tricks!
What is the result when you execute the below Python code:
(1) IndexError
(2) []
(3) ‘Mar’
(4) ‘Aug’
What’s the correct result from the above 4 options?