Skip to content

shalem-r/Data-Structures-and-Strings-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Data-Structures-and-Strings-in-Python

βœ… Task 1: Create a Dictionary of Student Marks

πŸ“ Description:

This script demonstrates how to use a Python dictionary to store student names and their corresponding marks. It allows the user to input a student's name and then retrieves and displays their marks if the student exists in the dictionary.

πŸ”§ Features:

  • Uses a dictionary to store student data.
  • Takes user input for student name.
  • Displays marks if found, or a "not found" message if the name is missing.

βœ… Task 2: Demonstrate List Slicing

πŸ“ Description:

This script showcases how to manipulate Python lists using slicing. It creates a list of numbers from 1 to 10, extracts the first five elements, and then reverses those elements.

πŸ”§ Features:

  • Generates a list of numbers from 1 to 10.
  • Uses slicing to extract and reverse elements.
  • Prints both the original and reversed lists

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages