Skip to main content

This package is created by Vikrant Singh. This package is used for printing '*' or '#' triangles for desired number of rows.

Project description

This package can be used for getting desired number of row star traiangle in up or down direction by giving an input for the desired number of rows.

Use

For example if you want to get a 5 row star triangle in upward direction. Then you can simply code it as,

import triprint

triprint.pstar(5,1)

First input will give the number of rows and second input is the boolean 0 or 1, 0 for down triangle and 1 for upper triangle.

Attribute

pstar('Number of rows in int','0 or 1') # For printing triangles made up of '*'

phash('Number of rows in int','0 or 1') # For printing triangles made up of '#

pdoller('Number of rows in int','0 or 1') # For printing triangles made up of '$'

pat('Number of rows in int','0 or 1') # For printing triangles made up of '@'

Project details


Download files

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

Files for triprint, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size triprint-1.0.5-py3-none-any.whl (2.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size triprint-1.0.5.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page