8000 Update 7-streamline-your-print-statements.py · pbt001/python-basics-exercises@2867d9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2867d9c

Browse files
authored
Update 7-streamline-your-print-statements.py
1 parent eb69032 commit 2867d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch04-strings-and-methods/7-streamline-your-print-statements.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
animal = "newt"
88

99
# Concatenate a number and a string in one print statement
10-
print(str(weight) + " kg is the weight of the newt.")
10+
print(str(weight) + " kg is the weight of the " + animal + ".")
1111

1212

1313
# Exercise 2

0 commit comments

Comments
 (0)
0