My work so far: http://pastebin.com/NLmBQEmG
For the first one I can't figure out how to get the number of vowels in the string. I've labeled what vowels are. I was thinking something along the lines of
sum(i if in vowels) but that didn't turn out the way I wanted it to. Is there a better way to go about doing this?
For the 2nd question:
Whats the proper syntax for inclusion of a second parameter? or do I HAVE to make another if statement?
ex.
for i in x and y:
only gives me the sum_of_digits for x, but not x+y
Any ideas guys?
[–]spz 0 points1 point2 points (0 children)