From 221bc63c228b9b6d9fe727f0eee95b7f393573dc Mon Sep 17 00:00:00 2001 From: Sourabh Date: Fri, 10 Jul 2026 17:49:50 +0000 Subject: [PATCH 1/2] Practical --- Day-11/test.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Day-11/test.py diff --git a/Day-11/test.py b/Day-11/test.py new file mode 100644 index 00000000..149200a6 --- /dev/null +++ b/Day-11/test.py @@ -0,0 +1,17 @@ +student_properties= { + "name":"abhi", + "class":"12th" +} + +students_info=[ + { + "name":"nishka", + "class":"12th" +}, + { + "name":"kiyana", + "class":"12th" +}] + +print (student_properties ["name"]) +print (students_info[0]["name"]) \ No newline at end of file From 8b2de6d52bc9e5b716385aaa36c5cc67ab9916f0 Mon Sep 17 00:00:00 2001 From: Sourabh Date: Sat, 11 Jul 2026 07:31:35 +0000 Subject: [PATCH 2/2] Practical --- Day-12/fileoperations.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Day-12/fileoperations.py diff --git a/Day-12/fileoperations.py b/Day-12/fileoperations.py new file mode 100644 index 00000000..2fa7ea50 --- /dev/null +++ b/Day-12/fileoperations.py @@ -0,0 +1,13 @@ +def updatefileProperties (filePath,key,value): + with open(filePath,"r") as serverConf: + lines = serverConf.readlines(); + + with open(filePath,"w") as serverConf: + for line in lines: + if key in line: + serverConf.write(key+"="+value+"\n") + else: + serverConf.write(line) + + +updatefileProperties("server.conf","MAX_CONNECTIONS","200") \ No newline at end of file