ET Revision Session - 3

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

2:40:30 The option 2 is also correct as I missed the last line in option 2 that would update the value of runs scored by Rohit against Aus to 120 inplace of 90 that we got from the first line.

DipanshuSinghBist
Автор

Here we go again with one more mistake🫣

2:11:00 The answer here should be 8 instead of 10. We missed the part that it is not just iterating over the words of list, but it is iterating over every character of each word in the fruits.

If n=8, then `except_count` will be incremented 3 times when it will iterate over chars of 'apple', 2 times for 'banana' and 2 more times for 'cherry'.

Overall `except_count` will become 3 + 2 + 2 = 7.


Any guesses what would be the value of `except_count` if n = 10.

Answer would be 13.

DipanshuSinghBist