Question
in python code answer part a to d a) Print a list of numbers from 1 to 1000 that can be divided by 3 .
in python code answer part a to d
a) Print a list of numbers from 1 to 1000 that can be divided by 3.
b) Read a string from the input and print a list of vowels that belong to that string.
All vowels are enlisted in a variable of the same name.
Sample Input 1:
invertebrate
Sample Output 1:
['i', 'e', 'e', 'a', 'e']
c)Write a program that takes a list of numbers, creates another list of even numbers from the first list, and prints it.
E.g. if my_numbers = [1, 2, 3, 4, 5], then your program should print the list [2, 4].
D) The list seconds is a list of numbers that represent seconds. Convert the number of seconds to full days and print the list that contains these values. The number of full days should be an int value.
use seconds = [86400, 1028397, 8372891, 219983, 865779330, 3276993204380912]
# create a list of days here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started