Skip to main content

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 nombre
    • b (int ou float) : deuxième nombre
  • Retourne :
    La somme de a et b.

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 nombre
    • b (int ou float) : deuxième nombre
  • Retourne :
    La différence a - 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 nombre
    • b (int ou float) : deuxième nombre
  • Retourne :
    Le produit a * 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

package_mehdi-0.0.4.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

package_mehdi-0.0.4-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file package_mehdi-0.0.4.tar.gz.

File metadata

  • Download URL: package_mehdi-0.0.4.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for package_mehdi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9afbf74eebee7d1141818de56973246c15002d53225eb530dd494565c7b7c85f
MD5 b2db27fe10345d91bbecd51dc9a3af00
BLAKE2b-256 90ead227e312aa1ec12fa823911418ae00e6d1432ca9a5c6537a37d3f5c54387

See more details on using hashes here.

File details

Details for the file package_mehdi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: package_mehdi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for package_mehdi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dbf7325015f3998282aa504204c7dfdca81271a83ad6d082d4967db32e1482
MD5 b29105aca60369d884364216863853c2
BLAKE2b-256 aa15b4ded82f283e8f3d5ef3ba38a1ffad39caa67787c1ba2f91d2be08d0f214

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page