Skip to content

Python-Foundation-26Mar/LAB_LISTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

LAB_LISTS

Given the following list : [2, 3, 4, 5, 15, 1, 43, 20]

Q1: Write a function that takes a list as a parameter, and then returns the sum of all the items in that list.

Q2: Write a function that takes a list as a parameter, and then returns the largest number from a list of numbers.

Q3: Create an odd numbers list from the elements of a range from 1200 to 2000 with steps of 125, using [ list comprehension ].

Q4: use list slicing to get a new list from the previous list starting from the start to the 5th element in the list.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published