15 Oct Saturday 15:30 Python Homework 10.12
Question 1:
Create a list of numbers between 4 and 40 who are divisible by either 3 or 5
Sample Output:
[6,9,10,12,15,…….,40]
Question 2:
ask for the user to enter a string and find the total number of vowels (a,e,i,o,u) and consonants are in the string
Sample Input 1:
Enter a string: Tesla
Sample Output 2:
There are 2 vowels and 3 consonants
Sample Input 2:
bcda
Sample Output 2:
vowels: 1
consonant : 3
Sorry, the comment form is closed at this time.