You are on page 1of 1

# -*- coding: utf-8 -*-

"""
Created on Fri Nov 24 00:21:17 2023

@author: Piyush Prateek


"""
#Creating a dictionary
d = dict(zip(('Name','Class','Roll_no'),('Ram','XISci','22')))
print(d)
d.update({'Name':'James'})
print(d)
#Output: {'Name': 'Ram', 'Class': 'XISci', 'Roll_no': '22'},
#{'Name': 'James', 'Class': 'XISci', 'Roll_no': '22'}

You might also like