168,545 views
13 votes
13 votes
What will be assigned to the variable s_string after the following code executes? special = '1357 country ln.' s_string = special[ :4] '7' 5 '1357' '7 country ln.'

User Santoscadenas
by
3.0k points

1 Answer

20 votes
20 votes

Answer:

1357

Step-by-step explanation:

s_string = special[ :4]

"[:4]" means the first character up to the third character

User Vahidg
by
3.1k points