Help me | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 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)

4th Jun 2021, 9:46 AM
Anikur Rahman
Anikur Rahman - avatar
16 Antworten
+ 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
4th Jun 2021, 11:11 AM
Lothar
Lothar - avatar
+ 6
Anikur Rahman Here's the python solution: print("Yes"*any(x in input() for x in "aeiouAEIOU") or "No") # Hope this helps
4th Jun 2021, 4:52 PM
Calvin Thomas
Calvin Thomas - avatar
+ 3
Your attempt first
4th Jun 2021, 9:49 AM
Yash Wable šŸ‡®šŸ‡³
Yash Wable šŸ‡®šŸ‡³ - avatar
+ 2
Place vowels into a tuple/list/array. Then use a conditional loop. Hope that helps.
4th Jun 2021, 12:15 PM
Chris Phillips
Chris Phillips - avatar
+ 2
Thanks for your advise Lothar šŸ‘
4th Jun 2021, 12:33 PM
Yash Wable šŸ‡®šŸ‡³
Yash Wable šŸ‡®šŸ‡³ - avatar
+ 1
Str =input() Vowel =[] # write vowel here For i in str : If I in vowel: Print ("True") Else : Print ("False")
4th Jun 2021, 9:54 AM
Yash Wable šŸ‡®šŸ‡³
Yash Wable šŸ‡®šŸ‡³ - avatar
+ 1
Str = input() Vowel = ["a","e","i","o","u"] For x in str : If x in vowel: Print ("Yes") Else: Print ("No")
5th Jun 2021, 2:26 PM
Tesla.Oruzgani
Tesla.Oruzgani - avatar
+ 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.
5th Jun 2021, 6:14 PM
Akash
Akash - avatar
0
Yash Wable šŸ‡®šŸ‡³ I tried my best but failed, I need the answer very soon as its answer is very important for me.
4th Jun 2021, 9:51 AM
Anikur Rahman
Anikur Rahman - avatar
0
Yash Wable šŸ‡®šŸ‡³ My question and its output is something like this anjj: Yes ypkk: No
4th Jun 2021, 10:05 AM
Anikur Rahman
Anikur Rahman - avatar
0
How do we arrange the HTML words
5th Jun 2021, 12:40 PM
Appiah Festus
0
Me too
5th Jun 2021, 12:41 PM
Appiah Festus
0
Hope my code worked
5th Jun 2021, 2:34 PM
Tesla.Oruzgani
Tesla.Oruzgani - avatar
0
Iā€™d appreciate it if youā€™d your attempt, thank you.
5th Jun 2021, 6:02 PM
šŸŒŒDarkFox
šŸŒŒDarkFox - avatar
- 2
Hi friends
5th Jun 2021, 2:31 PM
Balaji Ryapanwad
Balaji Ryapanwad - avatar
- 2
Hey
5th Jun 2021, 2:34 PM
Tesla.Oruzgani
Tesla.Oruzgani - avatar