Hi @Arindam Pandit ,
Thank you for posting query in Microsoft Q&A Platform.
You mean to clear enrolrecords
object inside with open()
block? If yes, enrolrecords
variable is going to hold dictionary in it as json.load()
function is going to retrun json data as dictionary object in python.
To clear dictionary we can use clear() function. kindly use code as enrolrecords.clear()
and see if that helps.
Please let us know how it goes. Thank you.