135k views
1 vote
The built-in Python function slice

allows the programmer to select
portions of the input that they want
to slice out. It has two possible
syntaxes, slice (stop) or
slice (start, stop, step). In
the single parameter version, start
and step default to none. The
following code will print "Str".
String =
s1= slice (3)
print(String [s1])
Which of the following will result in
the string "ti"?
(1 point)
sl
sl
=
=
'String slicing'
Os1 =
sl =
slice (2, 6, 2)
slice (1, 5)
slice (2,6)
page 1 of 1
slice (1, 5, 2)

The built-in Python function slice allows the programmer to select portions of the-example-1

1 Answer

1 vote
is yeah you need to win so let’s gooo
User Edudjr
by
8.3k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories