186,447 views
35 votes
35 votes
What will be assigned to the string variable pattern after the following code executes? i = 3 pattern = 'z' * (5 * i)

User Koryonik
by
2.6k points

1 Answer

14 votes
14 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 William Melani
by
2.9k points