From 6f6e70ccb273ded3961f105926c2b5773320db6a Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 23 Jan 2023 07:36:07 +0000 Subject: [PATCH] docs(concat_string): add subject description --- subjects/devops/concat-string/README.md | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 subjects/devops/concat-string/README.md diff --git a/subjects/devops/concat-string/README.md b/subjects/devops/concat-string/README.md new file mode 100644 index 00000000..7b0b4ca1 --- /dev/null +++ b/subjects/devops/concat-string/README.md @@ -0,0 +1,29 @@ +## concat_string + +### Instructions + +Create a file `concat_string.py` that contains a function `concat` which takes in two strings as parameters and performs the following operations: + +- Concatenates the two strings by adding a comma and space between them. +- Returns the resulting string. + +### Usage + +Here is an example of how to use the `concat` function: + +```python +import concat_string +string1 = "Hello" +string2 = "World" +print(concat_string.concat(string1, string2)) +``` + +This will output: + +```console +'Hello, World' +``` + +### References + +[string concatenation](https://www.w3schools.com/python/ref_string_concatenation.asp)