Computer Science, asked by sahilkumar11c46, 8 months ago

ماااا
program in python to print the pattern of hollow inverted Right triangle​

Answers

Answered by Oreki
1

Program

    \texttt{print(*["\n" + ("* " * i) for i in range(5, 0, -1)])}

Algorithm

  • Generating the pattern by repeating the asterisk i times.
  • Unpacking the list, hence displaying the pattern on the screen.
Similar questions