Skip to content

pgkm93/DataStructuresandStringsinPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tutedue
Assignment 5

Task -1
Create a Dictionary of student marks

  1. In the first task i took def as stn_marks it's helps to call the function several time and reusable.
  2. Here dictionary are created and name as a key and values as marks
  3. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages