67.9k views
21 votes
What will be assigned to the string variable pattern after the following code executes? i = 3 pattern = 'z' * (5 * i)

User Ozacha
by
5.0k points

1 Answer

3 votes

Answer:

A

Step-by-step explanation:

What will be assigned to the string variable pattern after the following code executes? i = 3 …

A) 'zzzzzzzzzzzzzzz'

B) 'zzzzz'...

A:

A) 'zzzzzzzzzzzzzzz'

User Mat Kelcey
by
5.5k points