Download python/person.py from neopilot/PyRs2: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/person.py
- Command line
-
hf download hf://datasets/neopilot/PyRs2/python/person.py
-
curl -L -o person.py https://huggingface.co/datasets/neopilot/PyRs2/resolve/main/python/person.py
242 Bytes
| class Person: | |
| def __init__(self, name, age): | |
| self.name = name | |
| self.age = age | |
| def greet(self): | |
| print(f"Hello, my name is {self.name} and I am {self.age} years old.") | |
| person = Person("Alice", 30) | |
| person.greet() |