Skip to content

Commit 7de96fc

Browse files
authored
Update PrintStringExamples.py
1 parent 89b5063 commit 7de96fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PrintStringExamples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# quickly become much less readable.
2323

2424
print()
25-
print('3. String substitution operator(%) example:')
25+
print('2. String substitution operator(%) example:')
2626
print('There are %s %s in %s.'%(population, animals, city))
2727

2828

@@ -33,7 +33,7 @@
3333
# and multiple use of the same data.
3434

3535
print()
36-
print('2. Using str.format() method example:')
36+
print('3. Using str.format() method example:')
3737
print('There are {}, {}, {}.'.format(population, animals, city))
3838
print('In {2}, there are {0} {1}.'.format(population, animals, city))
3939

0 commit comments

Comments
 (0)