From 07e3a84b7c43fffefaff419fa4c879cbb8744bca Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 26 Jan 2023 18:10:50 +0000 Subject: [PATCH] docs(write_file): fix the hashes --- subjects/devops/write_file/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/subjects/devops/write_file/README.md b/subjects/devops/write_file/README.md index ed8450ced..20fbfe07e 100644 --- a/subjects/devops/write_file/README.md +++ b/subjects/devops/write_file/README.md @@ -1,6 +1,6 @@ -# Write file +## Write file -## Instructions +### Instructions Create a file `write_file.py` which will have a function `to_do(input)` with one input a `list[tuple[dt.date, str]]` which will be a to do list example: @@ -22,7 +22,7 @@ $ Make sure you follow the correct format for the output. -## Usage +### Usage Here is a possible `test.py` to test your function: @@ -45,7 +45,7 @@ Wednesday 01 June 2022: fix the seat Thursday 02 June 2022: take the trash ``` -## Hints +### Hints - The `strftime() `method is used to format the date object as a string. You can use this method to format the date in the desired format (e.g. %A %d %B %Y). @@ -80,7 +80,7 @@ The `write()` method is used to write the string "Hello World!" to the file. - Test your function with different input formats, different date and task length, different date range and make sure that it works as expected. -## References +### References - [open a file](https://www.w3schools.com/python/python_file_write.asp) - [write in a file](https://www.pythontutorial.net/python-basics/python-write-text-file/)