Tutorial

This section covers the fundamentals of developing with vedicpy, including a package overview, basic and advanced usage.

Overview

The vedicpy package is structured as collection of submodules:

  • vedicpy

Quickstart

Before diving into the details, we’ll walk through a brief example program

# Example of calculating the cube of a number
import vedicpy as vedic

# calling cube_2digit_number from vedic.cube
result = vedic.cube.cube_2digit_number(67)

print(result)

In the program we first call the package by using import and by giving a compact syntax to it by using vedic as the name.

Then we simply call the cube_2digit_number function from cube module present in vedicpy.

As the name suggest cube_2digit_number function only cubes 2 digit integer numbers and returns an interger value that is stored in variable result and then we simply print that value of the variable.