diff --git a/Day-12/test.py b/Day-12/test.py new file mode 100644 index 00000000..92c5c178 --- /dev/null +++ b/Day-12/test.py @@ -0,0 +1,13 @@ +def Update_Server_ConfigFile(file_path, key, value): + with open(file_path, "r") as file: + lines = file.readlines() + + with open(file_path,"w") as file: + for line in lines: + if key in line: + file.write(key + "=" + value + "\n") + else: + file.write(line) + +Update_Server_ConfigFile("server.conf","MAX_CONNECTIONS", "1000") + diff --git a/README.md b/README.md index f32309c8..1119aa56 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,7 @@ - Example: Automating a log file analysis with a loop to find errors. ## Day 10: Working with Lists (Part 2) -- List comprehensions. -- Nested lists and advanced list operations. +- Advanced list operations. - Practice exercises and examples: - Example: Print list of files in the list of folders provided @@ -79,7 +78,7 @@ - AWS automation with Boto3. - Managing EC2 instances, S3 buckets, and more. - Practice exercises and examples: - - Example: Creating a aws script for deploying applications to remote servers. + - Example: Creating a python script using boto3 to implement serverless functions. ## Day 14: Github-JIRA intergration Project - (Project-4) - Introduction to RESTful APIs.