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,...
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,...
Question 1: Input a string using scanner and print the number of vowels and consonants in the sting. Sample Input: bcda Sample Output: vowels: 1 consonant : 3 Question 2: Input a string using scanner and check if the string is a palindrome. e.g. aba is a palindrome because if you reverse it is...
Question 1. Use float() to create a number from a string like '12.34'. Make sure the result is really a number! Question 2. Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up or down? Question 3. Try using int() to create...
Question: Please make some modifications of the program we made in the class. Make ball appears on the top if the ball reaches the bottom, or appears at bottom when the ball reaches the top. ...
Question: Problem DescriptionA fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that...
Question 1: Write a Python program to get the Fibonacci series between 0 to 100. Note : The Fibonacci Sequence is the series of numbers, the first two numbers are 0 and 1 : 0, 1, 1, 2, 3, 5, 8, 13, 21, ...