Why?
I wrote an Exam where I needed to calculate percentages. Unfortunately I forgot how to do this, so I just wrote this in my code:
a = input("first value")
b = input("second value")
import os
os.system("pip install get_percent")
from get_percent import get_percent
percentage = get_percent(a, b)
print(f"The percentage is: {percentage}")
Because this module doesn't exist I just wrote it myself. I don't know if my teachers approves this. Probably not, but it's worth a try xD
I'll let you know what the result is once I get the exam back lmao
Metadata
Release files for get-percent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| get_percent-0.1.0.tar.gz | 13.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| get_percent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.2 kB
Release files / get_percent-0.1.0.tar.gz
| Download URL | get_percent-0.1.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c723399be92a7a9790ec068c88dc34b560afcac084cfbc8affa011a583f39e5a
|
|
BLAKE2b-256 checksum How to use checksums |
a526636f4d7fcac1e9e6ade3df50fe63c753feddea0387cc7500c84eb9fe21d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / get_percent-0.1.0-py3-none-any.whl
| Download URL | get_percent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1468ca520e5c976442abd8e69e126cccfa46b5473f896b91019c681bca678bd
|
|
BLAKE2b-256 checksum How to use checksums |
2a796649dd6c1c17de1561c1e9ab865da9514b7ef492b7173a4c3cbdd9d27258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|