Un package minimal
Project description
package_mehdi
Un package Python simple avec des fonctions basiques pour afficher un message et effectuer des opérations arithmétiques.
Fonctions
Mehdi_print()
Affiche un message simple.
Usage :
Mehdi_print()
# Sortie :
# hello I am Mehdi
Mehdi_add(a, b)
Calcule la somme de deux nombres.
-
Arguments :
a(int ou float) : premier nombreb(int ou float) : deuxième nombre
-
Retourne :
La somme deaetb.
Exemple :
result = Mehdi_add(4, 5)
print(result) # Affiche 9
Mehdi_subtract(a, b)
Calcule la différence entre deux nombres.
-
Arguments :
a(int ou float) : premier nombreb(int ou float) : deuxième nombre
-
Retourne :
La différencea - b.
Exemple :
result = Mehdi_subtract(10, 3)
print(result) # Affiche 7
Mehdi_multiply(a, b)
Calcule le produit de deux nombres.
-
Arguments :
a(int ou float) : premier nombreb(int ou float) : deuxième nombre
-
Retourne :
Le produita * b.
Exemple :
result = Mehdi_multiply(6, 7)
print(result) # Affiche 42
Installation
Pour installer ce package depuis PyPI (ou localement), utilisez :
pip install package_mehdi
Utilisation
Importez les fonctions et utilisez-les comme suit :
from package_mehdi import Mehdi_print, Mehdi_add, Mehdi_subtract, Mehdi_multiply
Mehdi_print()
print(Mehdi_add(2, 3))
print(Mehdi_subtract(5, 2))
print(Mehdi_multiply(4, 3))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file package_mehdi-0.0.3.tar.gz.
File metadata
- Download URL: package_mehdi-0.0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
159efacbbc1056324f39eb550e9c46acb75d70fef5a1188f4245c8d761537904
|
|
| MD5 |
9dfe16ef7619c93f46600cef5677c916
|
|
| BLAKE2b-256 |
d078c1c930975733f178ed70ed75d9c54402f6e667f5568f0b782f638cfe3570
|
File details
Details for the file package_mehdi-0.0.3-py3-none-any.whl.
File metadata
- Download URL: package_mehdi-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27c4e7e21f7ec530e7c9b63b47d7f78f1452696220b1b0dc612a7ac7e0403c37
|
|
| MD5 |
64962515053d6f762b1b8c9cc7ea99d2
|
|
| BLAKE2b-256 |
bf17acd3de8cddc8733159e8e62a478bf527f3a87ae09675a4d38e123d4f82b6
|