From 3152d76b75cb1675cca444a2bde3875366a70d54 Mon Sep 17 00:00:00 2001 From: nprimo Date: Tue, 31 Jan 2023 17:50:11 +0100 Subject: [PATCH] docs(object_to_json): fix small grammar/format issues --- subjects/devops/object_to_json/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/devops/object_to_json/README.md b/subjects/devops/object_to_json/README.md index dfb9241f3..8dceba4aa 100644 --- a/subjects/devops/object_to_json/README.md +++ b/subjects/devops/object_to_json/README.md @@ -8,7 +8,7 @@ You just landed a new job, congrats! Your new task is to build two functions to The new registration information comes as string formatted as JSON. You need to create a file `object_to_json.py` that will have the following functions inside: -1. `create_new_user` that will receive a `dict` and will return a new object of the class `User` provided below. To be valid, the input `dict` must have a `username` key and a `email` key . The new `User` will have the same `username` and `email` of the input `dict`. If the input `dict` is invalid, the default user will be returned. +1. `create_new_user` that will receive a `dict` and will return a new object of the class `User` provided below. To be valid, the input `dict` must have a `username` key and an `email` key. The new `User` will have the same `username` and `email` of the input `dict`. If the input `dict` is invalid, the default user will be returned. ```python class User: @@ -38,7 +38,7 @@ print(user_to_json(user_1)) ```console $ python3 test.py {"username": "mario", "email": "mario@me.it"} - {} +{} $ ```