Dictionary related

30 views
Skip to first unread message

gtu.35...@gmail.com

unread,
Oct 28, 2024, 2:00:11 AM10/28/24
to noc24-cs1...@nptel.iitm.ac.in
Hi,

I have a question about what is happening in this video at 00:12:59 -

http://www.youtube.com/watch?v=yZ0Jzd-nVTU#t=779s.

In the line 17 of the code, we are reading the alphabets from the file (ip_file.txt). These alphabets will work as keys. Then in line 22 we are reading the corresponding value from the dictionary. Which shall generate the cypher text for us. But if the key is not present then the alphabet will be written in the data string as it is. Am I correct in understanding the code?.

Thanks!



Reference Key - Key('StudentQuestionEntity', 6713357577486336, namespace='ns_noc24_cs113')
Reply all
Reply to author
Forward
0 new messages