TORONTO KIDS COMPUTER CLUB | Saturday 15:30 Python Homework 10.12
16581
post-template-default,single,single-post,postid-16581,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Saturday 15:30 Python Homework 10.12

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

No Comments

Sorry, the comment form is closed at this time.