Mise en conformite convention nommage & description: afficherflottant.py

This commit is contained in:
Fred Z 2018-02-06 11:28:14 +01:00
parent 448494bddb
commit 4a4fb39bde
3 changed files with 23 additions and 17 deletions

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from package.fonctions import afficher_flottant
# 2.3-afficher_flottant.py:
# OpenClassrooms - Apprenez à programmer en Python - Entre chaînes et listes
# https://openclassrooms.com/courses/apprenez-a-programmer-en-python/les-listes-et-tuples-2-2
afficher_flottant(1.123456789)
afficher_flottant(0.1)

16
afficherflottant.py Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Cours OC/python 3 - Entre chaînes et listes
[Ex 2.3: afficherflottant](https://openclassrooms.com/courses/apprenez-a-programmer-en-python/les-listes-et-tuples-2-2#/id/r-2232398)
Fournit une string formate en float
"""
from package.fonctions import afficher_flottant
afficher_flottant(1.123456789)
afficher_flottant(0.1)

View File

@ -1,13 +1,15 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# fonctions.py : essai d'utilisation d'un package
"""
Cours OC/python 3
# OpenClassrooms - Apprenez à programmer en Python - Modularité
# https://openclassroom/courses/apprenez-a-programmer-en-python/pas-a-pas-vers-la-modularite-2-2
Module de test: essai d'utilisation d'un package
"""Module de test, contient les fonctions crees durant le cours
OpenClassrooms - Apprenez à programmer en Python"""
Utilise par:
- ../afficherflottant.py
"""
def table(n, m=11):