Matrix Codekata Program solutions in Python (3)

Pubblicato il: 29 maggio 2021
sul canale di: FORMAL INFINITY
802
12

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 :    • Matrix Codekata Program solutions in Pytho...  
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: askdoubtshere@gmail.com
_________________
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])
*********************


In questa pagina del sito puoi guardare il video online Matrix Codekata Program solutions in Python (3) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato FORMAL INFINITY 29 maggio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 802 volte e gli è piaciuto 12 spettatori. Buona visione!