Sep-03-2023, 12:50 PM
A range of 1 will only loop once with a value of 0.
0*"*" won't print anything
n = n+1 does nothing to alter your print statement as it is only using x
Note: the line
0*"*" won't print anything
n = n+1 does nothing to alter your print statement as it is only using x
range
can have its first parameter as the start and the second as the end, try playing around with using range(start_value, end_value) (not end value is not inclusive) to get the output you desire.Note: the line
n = n+1
can be removed.