asked 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
answered
User Edudjr
by
8.3k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.