python Repetition code example
Example 1: python string repetition ^
"cow" * 3
'cowcowcow'
"cow" * 10
'cowcowcowcowcowcowcowcowcowcow'
Example 2: python repetition structures
for x in range(1, 4):
print("We're on loop ")
->>
"We're on loop"
"We're on loop"
"We're on loop"
#Last number doesn't count.