Skip to content

yash14063/assignment-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Python Data Structures Assignment

This repository contains solutions for Assignment 5 on Data Structures and Strings in Python.

Files

  1. task1.py - Solution for Task 1: Dictionary of student marks
  2. task2.py - Solution for Task 2: List slicing demonstration

Task Descriptions

Task 1: Create a Dictionary of Student Marks

  • Creates a dictionary with student names as keys and marks as values
  • Takes user input to search for a student
  • Displays marks if found, or "Student not found" message

Task 2: Demonstrate List Slicing

  • Creates a list of numbers 1 through 10
  • Extracts the first five elements
  • Reverses the extracted elements
  • Prints all results as specified

How to Run

  1. Clone this repository
  2. Run each script separately:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages