We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecda8ad commit 8efe4edCopy full SHA for 8efe4ed
Kilometerstomile.py
@@ -6,4 +6,4 @@
6
7
# calculate miles
8
miles = kilometers * conv_fac
9
-print('%0.2f kilometers is equal to %0.2f miles' %(kilometers,miles))
+print(f'{kilometers:.2f} kilometers is equal to {miles:.2f} miles')
0 commit comments