Escribir una frase y luego dividir las vocales
def vowel_count(phrase):
phrase = phrase.lower()
return [phrase.count(v) for v in "aeiou"]
vowel_count("hola mundo")
All generations.
def vowel_count(phrase):
phrase = phrase.lower()
return [phrase.count(v) for v in "aeiou"]
vowel_count("hola mundo")
def vowels(phrase):
for vowel in phrase:
if vowel in 'aeiou':
print(vowel)
vowels('supercalifragilisticexpialidocious')
def hello_world():
print("Hello World")
hello_world()
def vowel_divider(sentence):
vowels = "AEIOU"
for vowel in vowels:
print("{} : {}".format(vowel, sentence.count(vowel)))
print("----------------------")
vowel_divider("Hola, este es un ejemplo")
vowel_divider("Hello, this is an example")
def vowels(word):
vowels = []
for letter in word:
if letter in "aeiouAEIOU":
vowels.append(letter)
return vowels
vowels("Hello World")
def vocal(x):
vocales = "aeiouAEIOU"
for i in x:
if i in vocales:
x = x.replace(i, "")
return x
#Palabra que se queire dividir
vocal("Hola, cómo estás")
def divide_vowels(sentence):
vowels = ['a', 'e', 'i', 'o', 'u']
return [letter for letter in sentence if letter in vowels ]
divide_vowels('Abracadabra')
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description