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.

Source Distribution

triprint-1.0.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

triprint-1.0.5-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file triprint-1.0.5.tar.gz.

File metadata

  • Download URL: triprint-1.0.5.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for triprint-1.0.5.tar.gz
Algorithm Hash digest
SHA256 bd55b8e550f6aaa1d3f23925b11fd711fd62d34fc9686710f7dbc4473a6beb0f
MD5 eb9a07b2cf3d6051f86af66f38d867e5
BLAKE2b-256 f00a2694c3449475bfde75cd4a78363104ca90e4014d262f50406cd0cee03f4d

See more details on using hashes here.

File details

Details for the file triprint-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: triprint-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for triprint-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 115fe61217a4ed5e8bc9805e38b9513e3b709dea6c1273e9b4b48965bb16a79c
MD5 ab34b40a4501ae08a987c07bebd7f2f7
BLAKE2b-256 6a3732d8a219d579a0b6e53754c343f6133f46154ae88e0a6fc0a4d008931a00

See more details on using hashes here.

Supported by

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