Last updated:
0 purchases
pprintstardesignpattern 0.0.2
Star pattern
This module specially designed for fun just to print different variations of star pattern.
Advantage
Easy to use
Ready made pattern
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.