Mise en conformite convention nommage & description: afficherflottant.py
This commit is contained in:
parent
448494bddb
commit
4a4fb39bde
|
@ -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
16
afficherflottant.py
Executable 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)
|
|
@ -1,13 +1,15 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# fonctions.py : essai d'utilisation d'un package
|
"""
|
||||||
|
Cours OC/python 3
|
||||||
|
|
||||||
# OpenClassrooms - Apprenez à programmer en Python - Modularité
|
Module de test: essai d'utilisation d'un package
|
||||||
# https://openclassroom/courses/apprenez-a-programmer-en-python/pas-a-pas-vers-la-modularite-2-2
|
|
||||||
|
|
||||||
"""Module de test, contient les fonctions crees durant le cours
|
Utilise par:
|
||||||
OpenClassrooms - Apprenez à programmer en Python"""
|
- ../afficherflottant.py
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
def table(n, m=11):
|
def table(n, m=11):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user