p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Strings I
Exercise: Extract range from string II
Exercise: Extract range from string II
Fill in the gaps inside the square brackets to extract the word "Code" from the string.
Premium
reset
text = "Code for fun!"
sub_str = text[:]
print(sub_str)
Python
Setting up Python environment...
Output