fork download
  1. #L shape
  2. # *
  3. # *
  4. # *
  5. # ****
  6. for row in range(4):
  7. for col in range(4):
  8. if(row==0 or col==3):
  9. print("*",end="")
  10. else:
  11. print(" ",end="")
  12. print("")
  13. #Reverse L
  14.  
  15. # ****
  16. # *
  17. # *
  18. # *
  19. for row in range(4):
  20. for col in range(4):
  21. if(row==0 or col==0):
  22. print("*",end="")
  23. else:
  24. print(" ",end="")
  25. print("")
  26. #Plane Stars
  27. #****
  28. for row in range(4):
  29. print("*",end="")
Success #stdin #stdout 0.03s 9468KB
stdin
Standard input is empty
stdout
****
   *
   *
   *
****
*   
*   
*   
****