Strings Codekata programing solution using Python смотреть онлайн
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/xTcKN_LHasg
Subscribe: https://www.youtube.com/channel/UCPN5...
______________________________________________
Question 1 :-
You are given a string.Your task is to print only the consonants present in the string without affecting the sentence spacings if present. If no consonants are present print -1
*************************************************
a = input()
r = 0
for i in a:
if i not in 'aeiouAEIOU':
print(i,end="")
r += 1
if r == 0:
print(-1)
************************************************
Question 2:-
You are given two numbers. Your task is to multiply the two numbers and print the answer.
************************************************
a,b = map(int,input().split())
print(a*b)
*************************************************
Question 3:-
You are given a string. You have to print “Wonder” if the string is wonderful and -1 if it is not. A wonderful string is a string, which is made up of exactly 3 different characters.
************************************************
a = input()
j = 0
r = 1
x = a[j]
for i in a:
if i == x:
continue
else:
r += 1
x = i
if r == 3:
print('Wonder')
else:
print(-1)
**********************************************
Question 4:-
Ria is a 5 year old girl. Her mother wants to teach her how to sort words in the same order that they appear in a dictionary. She decides to write a program to sort a given set of strings based on their alphabetical order. Help Ria’s mother to complete the program.
*************************************************
a = input()
b = input().split()
b.sort()
print(' '.join(b))
***************************************************
Question 5:-
Radha newly learnt about palindromic strings.A palindromic string is a string which is same when read from left to right and also from right to left.Help her in implementing the logic.
*****************************************************
a = input()
if a == a[::-1]:
print(1)
else:
print(0)
******************************************************
_____________________________________________________
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Strings Codekata programing solution using Python» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.