This website works better with JavaScript.
Home
Explore
Help
Sign In
E2L_Ivry
/
cours-python
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Exo compatible avec Python 3.5 - on sait jamais
master
Dimitri Merejkowsky
4 years ago
parent
a6a72f48eb
commit
98473f1525
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
cours/source/extraits/convertisseur.py
+ 1
- 1
cours/source/extraits/convertisseur.py
View File
@@ -30,7 +30,7 @@ def main():
unité_de_départ = sys.argv[2]
unité_d_arrivée = sys.argv[3]
valeur_de_sortie = convertir(valeur, unité_de_départ, unité_d_arrivée)
print(
f"{valeur_de_sortie:.6}"
)
print(
"{:.6}".format(valeur_de_sortie)
)
main()