Download evaluation/regression/cases/python-cli-help/start/commands/spongebob.py from ar08/zzz: direct link, hf CLI and curl.
- Browser
- Download file 205 Bytes
-
https://huggingface.co/spaces/ar08/zzz/resolve/main/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
- Command line
-
hf download hf://spaces/ar08/zzz/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
-
curl -L -o spongebob.py https://huggingface.co/spaces/ar08/zzz/resolve/main/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
205 Bytes
| def spongebob_case(s): | |
| result = '' | |
| for i, char in enumerate(s): | |
| if i % 2 == 0: | |
| result += char.lower() | |
| else: | |
| result += char.upper() | |
| return result | |