Posted on:

27 Dec 2022

0

1 line alternative soln. for #9

This single line of code does the job:
print("\t*****\n\t*\n\t****\n\t*\n\t*\n\t*")

Giles method helps cement loops and conditionals theory, but for efficiency sake going with the above is more preferrable

0 answers ( 0 marked as helpful)

Submit an answer

  • Javascript
  • Python
  • Ruby
  • PHP
  • Java
  • C
  • C#
  • C++
  • HTML
  • SQL
  • R
  • Shell