145k views
1 vote
What will be assigned to the variable s_string after the following code executes? special = '1357 Country Ln.' s_string = special[ :4] Group of answer choices

User Sposnjak
by
4.2k points

1 Answer

3 votes

Answer:

s_string = 1357

Step-by-step explanation:

character: index

1: 0

3: 1

5: 2

7: 3

: 4

C: 5

o: 6

u: 7

n: 8

t: 9

r: 10

y: 11

: 12

L: 13

n: 14

. : 15

s_tring = special[:4]

s_tring = special[0] + special[1] + special[2] + special[3]

s_string = 1357

User FlappySocks
by
4.7k points