8000 Remove d from format spec · rakash/python-basics-exercises@ce3f3bd · GitHub
[go: up one dir, main page]

Skip to content

Commit ce3f3bd

Browse files
committed
Remove d from format spec
1 parent e15d759 commit ce3f3bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch10-primer-on-oop/2-instantiate-an-object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, color, mileage):
3535
red_car = Car("red", 30000)
3636

3737
for car in (blue_car, red_car):
38-
print(f"The {car.color} car has {car.mileage:,d} miles")
38+
print(f"The {car.color} car has {car.mileage:,} miles")
3939

4040

4141
# Exercise 3

0 commit comments

Comments
 (0)
0