Numbers Codekata Program Solving using Python(4)

Опубликовано: 27 Май 2021
на канале: 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)
********************


На этой странице сайта вы можете посмотреть видео онлайн Numbers Codekata Program Solving using Python(4) длительностью online в хорошем качестве, которое загрузил пользователь FORMAL INFINITY 27 Май 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 552 раз и оно понравилось 9 зрителям. Приятного просмотра!