We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bfdeb commit 7cdb92dCopy full SHA for 7cdb92d
output/abbreviate_a_two_word_name.py
@@ -0,0 +1,27 @@
1
+"""Kata - Abbreviate a Two Word Name
2
+
3
+completed at: 2024-04-04 12:38:10
4
+by: Jakub Červinka
5
6
+Write a function to convert a name into initials. This kata strictly takes two words with one space in between them.
7
8
+The output should be two capital letters with a dot separating them.
9
10
+It should look like this:
11
12
+`Sam Harris` => `S.H`
13
14
+`patrick feeney` => `P.F`
15
16
+~~~if:riscv
17
+RISC-V: The function signature is:
18
19
+```c
20
+char *get_initials(const char *full_name, char initials[4]);
21
+```
22
23
+Write your result to `initials`, and return that buffer.
24
+~~~
25
+"""
26
27
+None
0 commit comments