Datasets:
Download Python/train/3.14/template-strings/modern_22.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 169 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.14/template-strings/modern_22.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.14/template-strings/modern_22.py
-
curl -L -o modern_22.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.14/template-strings/modern_22.py
169 Bytes
| name = "World" | |
| content = html(t"<p>Hello {name}</p>") | |
| template = t"<div>{content}</div>" | |
| element = html(template) | |
| assert str(element) == '<div><p>Hello World</p></div>' | |