Skip to content
 
 

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Day5-Lab1-List

Given the following list : [5, 4, 17, 19, 30, 2, 7, 10, 45]

  • Q1: Write a Python program to sum all the items in the list.
  • Q2: Write a Python program to get the largest number from the list.
  • Q3: Use list comprehension, create a new list from the above list containing only even numbers.
  • 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

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages