Skip to content

Instantly share code, notes, and snippets.

View lARSHADl's full-sized avatar
🖤
Seeker | Believer | Achiever

Arshad Ahmed lARSHADl

🖤
Seeker | Believer | Achiever
  • india
View GitHub Profile
@lARSHADl
lARSHADl / play_kitchen.yaml
Created June 15, 2021 12:39 — forked from jesserockz/play_kitchen.yaml
ESPHome Ikea Kitchen Microwave
substitutions:
devicename: play_kitchen
friendly_name: Play Kitchen
ip: '10.5.5.222'
wifi_reboot_timeout: 0s
########### PINS #########
# 3.3V 5V
# GPIO15 GROUND
# dht # GPIO13 GPIO2 LED / buzzer
# Write code that will count the number of vowels in the sentence s and assign the result to the variable num_vowels.
# For this problem, vowels are only a, e, i, o, and u. Hint: use the in operator with vowels.
s = "singing in the rain and playing in the rain are two entirely different situations but both can be fun"
vowels = ['a','e','i','o','u']
# Write your code here.
num_vowels = sum([1 for i in s if i in vowels])
print(num_vowels)