Professional Documents
Culture Documents
SKILLING Experiments: EX (1.a) Solution
SKILLING Experiments: EX (1.a) Solution
SKILLING Experiments: EX (1.a) Solution
2. write a python code to generate a Pascal’s triangle by taking a number n as an input and
generate Pascal triangle with n+1 lines as output.
EX (1.a) solution :
Output:
Either of the number is greater than 0
No number is greater than 0