<code>character = ''
for c in range(2):
If c == 0:
character = '*'
else:
character = '+'
I = 4
while I >= 1:
print(I * character)
I -= 1
</code>
<code>character = ''
for c in range(2):
If c == 0:
character = '*'
else:
character = '+'
I = 4
while I >= 1:
print(I * character)
I -= 1
</code>
character = ''
for c in range(2):
If c == 0:
character = '*'
else:
character = '+'
I = 4
while I >= 1:
print(I * character)
I -= 1
What does the for loop condition mean?
I thought c stands for character in a string but 2 is an integer?
New contributor
Meja Moshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
5