Spaces:
Sleeping
Sleeping
Download example_data/example_2.py from VirVen/Semantic_Mismatch: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/spaces/VirVen/Semantic_Mismatch/resolve/main/example_data/example_2.py
- Command line
-
hf download hf://spaces/VirVen/Semantic_Mismatch/example_data/example_2.py
-
curl -L -o example_2.py https://huggingface.co/spaces/VirVen/Semantic_Mismatch/resolve/main/example_data/example_2.py
194 Bytes
| import math | |
| # Get diameter from user | |
| d = float(input("Enter the diameter: ")) | |
| # Calculate the area | |
| area = 0.25 * math.pi * (d**2) | |
| # Print the result | |
| print("The area of the circle is:", area) | |