- 3
Help me
Write a programme in c and python that has a given string and check if it contains vowel. If it contains vowel then output will be "Yes" (without quotes). Else it will output "No" (without quotes)
16 ответов
+ 15
Yash Wable 🇮🇳 ,
you are showing a really nice code to help someone solving a task. we all appreciate your support very much!
(this is my personal statement - but it is not to criticize someone !!)
but there is an issue by giving a ready solution, when the op has not done and shown his attempt first.
as a part of the community i belive that learning by doing is more helpful, than just using a shared solution. we should act more as a mentor.
it is a very successful way when we are giving hints and help, so that the op is able to solve his task by himself. it would be great if you are going to help us to keep sololearn what it is:
▪︎a unique place to learn (we are a "self" learning platform!)
▪︎an absolutely great community that is willing to help other people
▪︎a great resource of people which has an unbelievable knowledge in coding and a long lasting experience
▪︎a place to meet people and to discuss with them all the possible points of view
thanks for your understanding
+ 6
Anikur Rahman Here's the python solution:
print("Yes"*any(x in input() for x in "aeiouAEIOU") or "No")
# Hope this helps
+ 3
Your attempt first
+ 2
Place vowels into a tuple/list/array.
Then use a conditional loop.
Hope that helps.
+ 2
Thanks for your advise Lothar 👍
+ 1
Str =input()
Vowel =[] # write vowel here
For i in str :
If I in vowel:
Print ("True")
Else :
Print ("False")
+ 1
Str = input()
Vowel = ["a","e","i","o","u"]
For x in str :
If x in vowel:
Print ("Yes")
Else:
Print ("No")
+ 1
I tried this and found the goal.
a = input()
vowels = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']
for x in vowels:# this will repeat below command.
if x in a:
print("Yes")
break# this will stop the loop after being the statement True. Otherwise it will be written 10 times for each argument in the list.
else:
print("No")
break# after being if statement False else statement will be written 10 times as before, so it will break that loop.
0
Yash Wable 🇮🇳
I tried my best but failed, I need the answer very soon as its answer is very important for me.
0
Yash Wable 🇮🇳
My question and its output is something like this
anjj: Yes
ypkk: No
0
How do we arrange the HTML words
0
Me too
0
Hope my code worked
0
I’d appreciate it if you’d your attempt, thank you.
- 2
Hi friends
- 2
Hey