Reference
sample_project
__main__
cli
main(input_str=None, capitalize=False)
Entry point for the application script.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_str |
str | None
|
string to reverse |
None
|
capitalize |
bool
|
if true, capitalize letters of input_str |
False
|
Source code in src/sample_project/cli.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
simple
reverse(s)
Reverse a given string.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
s |
str
|
string to reverse. |
required |
Returns:
Type | Description |
---|---|
str
|
A copy of the given string with characters in reverse order. |
Source code in src/sample_project/simple.py
1 2 3 4 5 6 7 8 9 10 |
|