Numbers Codekata Program Solving using Python(4)

Publié le: 27 mai 2021
sur la chaîne: FORMAL INFINITY
552
9

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)
********************


Sur cette page du site, vous pouvez voir la vidéo en ligne Numbers Codekata Program Solving using Python(4) durée online en bonne qualité , qui a été Téléchargé par l'utilisateur FORMAL INFINITY 27 mai 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 552 fois et il a aimé 9 téléspectateurs. Bon visionnage!