6
AssignmentMultiple Choice

String Formatting

Question 6 • Introduction to Computer Science B – 4-232

You have previously used slicing with strings. What is the output? str = 'abcdef' print(str[2:5])

Answer
A
cde
B
bcde
C
cdef
D
bcd
You have previously used slicing with strings…