Spaces:
Build error
Build error
Download evaluation/regression/cases/python-cli-help/start/commands/spongebob.py from Backup-bdg/OpenHands: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
- Command line
-
hf download hf://spaces/Backup-bdg/OpenHands/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
-
curl -L -o spongebob.py https://huggingface.co/spaces/Backup-bdg/OpenHands/resolve/main/evaluation/regression/cases/python-cli-help/start/commands/spongebob.py
197 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 | |