0

How do i make this pattern

i want the star to be at the end of the digit but i don't know how do it how tall is the stair case 4 * * * * how tall is the stair case 5 * * * * *

30th Sep 2016, 7:59 AM
alex slater
alex slater - avatar
3 Respostas
0
Try it with this: n = 5 i = 0 while i < n: print(i*' ' + '*') i = i + 1
30th Sep 2016, 9:04 AM
Amarie
0
it didnt work it put them on top of each other
30th Sep 2016, 3:54 PM
alex slater
alex slater - avatar
0
nevermind it worked i didnt out a space between the first ' '
30th Sep 2016, 4:03 PM
alex slater
alex slater - avatar