Skip to content

ShriyaShinde17/Python_Assignment-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Task 1: Create a Dictionary of Student Marks Problem Statement-Write a Python program that: Creates a dictionary where student names are keys and their marks are values. Asks the user to input a student's name. Retrieves and displays the corresponding marks. If the student’s name is not found, display an appropriate message.

Task 2: Demonstrate List Slicing Problem Statement-Write a Python program that: Creates a list of numbers from 1 to 10. Extracts the first five elements from the list. Reverses these extracted elements. Prints both the extracted list and the reversed list.

Key Learnings: 1.Dictionary in Python: A collection of key–value pairs. Keys must be unique. 2.List slicing: numbers[:5] extracts the first five elements. 3.Reversing with slicing: [::-1] creates a reversed version of a list.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages