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 : • Arrays Codekata Problem Solving using Pyth...
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:-
You are given with array of numbers.you have to find whether array is beautiful or not. A beautiful array is an array whose sum of all numbers is divisible by 2, 3 and 5
Input Description:
You are given a number ‘n’ denoting the size of array.Next line contains n space separated numbers.
Output Description:
Print 1 if array is beautiful and 0 if it is not
Sample Input :
5
5 25 35 -5 30
Sample Output :
1
*******************
a = int(input())
arr = list(map(int,input().split()))
if sum(arr)%2 == 0 and sum(arr)%3 == 0 and sum(arr)%5 == 0:
print(1)
else:
print(0)
********************
Auf dieser Seite können Sie das Online-Video Numbers Codekata Program Solving using Python(4) mit der Dauer online in guter Qualität ansehen, das der Benutzer FORMAL INFINITY 27 Mai 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 552 Mal angesehen und es wurde von 9 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!