Skip to content

Commit 28b202d

Browse files
committed
add in repr)
1 parent 6f031b8 commit 28b202d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

class_one/02_strings.py

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
s[-1] # returns 'u'
2121

22+
# Use the 'repr()'
23+
# repr() is string representation
24+
repr(s[0:7])
2225

2326
# EXERCISE: Book Titles (Part 1)
2427
# 1) Extract the book title from the string

0 commit comments

Comments
 (0)