Task-1
Level 1 – Basics
- Create a list of 10 numbers
and:
- Print the first element.
- Print the last element.
- Print the length of the
list.
- Take a list of names and:
- Print each name using a for
loop.
- Print the names in reverse order.
- Create a list of 5 fruits.
Ask the user to enter a fruit and check if it is in the list or not.
- Create a list with mixed
data types (integer, float, string). Print each element with its type
using type().
- Write a program to add,
remove, and update an element in a list.
Comments
Post a Comment