Skip to content

manar-ak/Day5-Lab1-List

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%