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

If you're not sure about the file name format, learn more about wheel file names.

pprint_star_design_pattern-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pprint_star_design_pattern-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pprint_star_design_pattern-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 970e38e2f7bc46d37efdf512d83df87f433e88b86d799ce578727accad12ed8c
MD5 4696d4edb85895167f86cef026cfd5d7
BLAKE2b-256 a4c292d095956f569174b83d2e4ee584fc1f140905c9fa9bf32e9bfbae746a21

See more details on using hashes here.

Supported by

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