Matrix Codekata Program solutions in Python (3)
Hey guys, Welcome to FORMAL INFINITY Channel, In this video we would discuss the solution for Codekata programing problems using python in Guvi. In this specific video we have discussed Input and Output related problems in Guvi. We would continue this series of video for covering all the topics under codekata.
If you find our videos useful, please like or comment and don't forget to subscribe our channel to follow frequent videos and regular updates posted in our channel.
Video link : https://youtu.be/yxM2uk0TWTU
Subscribe: https://www.youtube.com/channel/UCPN5......
And If you haven't checked Playlists available in our channel, The link for all the available playlists is given below:
Absolute Beginners : https://youtube.com/playlist?list=PLP...
Basics : https://youtube.com/playlist?list=PLP...
Strings : https://youtube.com/playlist?list=PLP...
Arrays : https://youtube.com/playlist?list=PLP...
Input & Output Functions : https://youtube.com/playlist?list=PLP...
Numbers : https://youtube.com/playlist?list=PLP...
If you have any queries related to problem solving (or) encounter difficulties while coding in Python, You may contact me through Gmail.
Contact id: [email protected]
_________________
Question_1:-
Zaheer is a batsman. He plays a cricket match for six overs and attempts 36 balls. After the match, he analyses his performance and wants to know against which bowler he was able to score the maximum. Help Zaheer find out.
Input Description:
A list of bowlers in the order in which they bowled the overs followed by Zaheer’s runs scored in each of the 36 balls faced.
Output Description:
Name of the bowler against whom Zaheer scored the maximum.
Sample Input :
Malinga
Bumrah
Chahar
Tahir
Malinga
Chahar
0 0 0 1 2 0
1 0 1 1 4 0
4 0 1 1 6 4
0 1 1 1 1 0
6 6 4 0 4 0
1 4 2 2 1 0
Sample Output :
Malinga
**********************
bowlers = []
overs = []
total_run = 0
calc_arr = []
for i in range(6):
bowlers.append(input())
for j in range(6):
overs += overs + [[int(x) for x in input().split()]]
for i in range(6):
runs = overs[I]
for j in runs:
total_run = total_run + j
calc_arr.append(total_run)
total_run = 0
player = calc_arr.index(max(calc_arr))
print(bowlers[player])
*********************
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Matrix Codekata Program solutions in Python (3)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.