generated from nullndr/pyproj
something
This commit is contained in:
13
README.md
13
README.md
@@ -1,12 +1,3 @@
|
|||||||
# Python Project
|
# Uni Py Exercises
|
||||||
|
|
||||||
A little template for Python projects.
|
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
This project uses [`pytest`](https://docs.pytest.org/en/stable/), once installed the tests can be runned with:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
pytest
|
|
||||||
```
|
|
||||||
|
|
||||||
|
Just a collection of some exercises in Python from my university (😭)
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
|
|
||||||
|
from strings import *
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
string_ex()
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
6
src/strings.py
Normal file
6
src/strings.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
def string_ex():
|
||||||
|
str = "Hello, world"
|
||||||
|
print(str)
|
||||||
|
print(len(str))
|
||||||
|
|
||||||
Reference in New Issue
Block a user