128k views
3 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 Achabahe
by
4.7k points

1 Answer

6 votes

Answer:

1357

Step-by-step explanation:

s_string = special[ :4]

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

User Spets
by
5.1k points