1. Write a Python program to filter integers (1-50) into two lists (even numbers and odd numbers) (using Lambda argument) 2. Create a list and find numbers from 1 to 200, which are divisible by 2-9 (use for loop) 3. Create a list and find numbers from 1 to 200, which are divisible by 2-9 (use list comprehension) 4. Create a list to get the first 11 Fibonacci series. Note: The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, .... Every next number is found by adding up the two numbers before it. Expected Output: 1 1 2 3 5 8 13 21 34 55 89
Added by Kimberly M.
Close
Step 1
First, we need to create a list of integers from 1 to 50. We can use the `range()` function to generate the numbers and convert them to a list using the `list()` function. ```python numbers = list(range(1, 51)) ``` Show more…
Show all steps
Your feedback will help us improve your experience
Hannah Wilds and 55 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Write a program in Python to calculate and display the sum of all odd numbers in the list
Shelayah R.
Write a Python Program for finding even odd number?
Chandra J.
Write a Python program that displays all integers between 1 and 100 that are divisible by 5 or 7, but not both. Write it using While and for.
Shaik D.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD