Skip to main content

A module that will help you to print all different types of star pattern

Project description

Star pattern

This module specially designed for fun just to print different variations of star pattern.


Advantage

  1. Easy to use
  2. Ready made pattern
  3. Useful for interviewers to ask pattern questions. And it reduces paper work to drawn and show to candiates.

Functions available within module

  • vertical_single_line(n=10)
  • vertical_left_bar_line(width=5,n=10)
  • vertical_right_bar_line(width=5,n=10,space=50)
  • horizontal_single_line(n=10,row=1)
  • horizontal_upper_bar_line(width=20,row=5)
  • left_angle_triangle(row=8)
  • left_angle_up_side_down_triangle(row=8)
  • right_angle_triangle(row=8)
  • right_angle_up_side_down_triangle(row=8)
  • pyramid(row=8)
  • pyramid_up_side_down(row=8)
  • square(row=5)
  • diamond(row=8)
  • left_angle_triangle_flip_up_down(row=8)
  • right_angle_triangle_flip_up_down(row=8)
  • right_shankarpali(row=8)
  • left_shankarpali(row=8)
  • empty_square(row=8)
  • empty_left_side_triangle(row=8)
  • hourglass(row=8) |
  • vertical_parallel_bar(width=5,space=10,row=10) |
  • add_vertical_empty_space(row=10)

How to import pprint_star_design_pattern module

import pprint_star_design_pattern

How to CALL star pattern function

import pprint_star_design_pattern
pprint_star_design_pattern.diamond()

OR


import pprint_star_design_pattern
pprint_star_design_pattern.diamond(row=10)

OR


import pprint_star_design_pattern
pprint_star_design_pattern.diamond(10)

Note : You can pass your input as positional parameter / keyword parameter or it will take deafult paramter which is set.


Change Log


Version : 0.0.1 (05-MAY-2022)

  • First Release

Version : 0.0.2 (09-MAY-2022)

  • Second Release : 3 more functions added - hourglass, vertical_parallel_bar, add_vertical_empty_space

LICENSE

Copyright 2022 Vikas Bhaskar Vooradi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page