Tableau Assignment 3
Tableau Assignment 3
Assignment 1 Question
Session 3: Assignment 1
Table of Contents
1. Introduction
3. Output
1. Introduction
This assignment will help you to consolidate the concepts learnt in the session.
Task 1:
1.
Write a function to compute 5/0 and use try/except to catch the exceptions.
2.
Hint: Subject,Verb and Object should be declared in the program as shown below.
subjects=["Americans ","Indians"]
verbs=["play","watch"]
objects=["Baseball","Cricket"]
1.
Write a function so that the columns of the output matrix are powers of the input vector.
The order of the powers is determined by the increasing boolean argument. Specifically, when
increasing is False, the i-th output column is the input vector raised element-wise to the power
of N - i - 1.
HINT: Such a matrix with a geometric progression in each row is named for Alexandre-
Theophile Vandermonde.
NOTE: The solution shared through Github should contain the source code used and the
screenshot of the output.
3. Output
N/A