While statement

Hello.I need help, I can not do this exercise, can you help me ??


  • you can multiply characters in python → '*' * 5 == '*****'
  • you can use rjust() and center() methods of the string
  • it would be best to define a function that accepts a parameter describing the width of the line that’s full of stars → in the first case it would be 6, in the second one 11.
  • I would personally use for loop not while for this task