Tutedue
Assignment 5
Task -1
Create a Dictionary of student marks
- In the first task i took def as stn_marks it's helps to call the function several time and reusable.
- Here dictionary are created and name as a key and values as marks
- Then we took user input find the data in the dictionary and the output is executed as mentioned in the assignment by calling def function name stn_marks().
Task - 2
Demonstrate list slicing
1.Using list of range function created number list from 0 to 10,
2.Creating variable as extract and by [0:5] slicing numbers extracted from original data .
3.Using [::5] , here : 1st colon indicates the start and second colon indicate the end of lice and -1 tells code to
iterate through the list in reverse order, from the end to the beginning.
Thank you