Skip to content

Commit e2de4f2

Browse files
authored
Fixed a couple typos
1 parent 5fc6c91 commit e2de4f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Python Intro/python_intro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@
259259
print (x) # prints ['pig', 'cow', 'horse']
260260

261261
# Multiplying -- multiply a sequence using *
262-
x = bug' * 3
263-
print (x) # prints bugbugbug'
262+
x = 'bug' * 3
263+
print (x) # prints 'bugbugbug'
264264

265265
x = [8, 5] * 3
266266
print (x) # prints [8, 5, 8, 5, 8, 5]
@@ -306,7 +306,7 @@
306306

307307
# Sum -- find the sum of items in a sequence
308308
# entire sequence must be numeric type
309-
x = [5, 7, 'bug]
309+
x = [5, 7, 'bug']
310310
print (sum(x)) # error!
311311

312312
x = [2, 5, 8, 12]

0 commit comments

Comments
 (0)