Class 12 Practical for reduced syllabus

 

PY 1(a) Calculate Factorial

 Coding:


Output:




PY 1(b) – Sum of series

Write a program to sum the series 1/1 + 22/2 + 32/3 + …. nn/n

 

Coding:



Output:



PY 2(a) – Odd or Even

Coding:

Output:





PY 2(b) – Reverse the String

Coding:



Output:



PY 3 – Generate values and remove odd numbers



Output:



PY 4 – Generate Prime numbers and Set Operations

Coding:



Output:





PY 5 – Display a String elements – using class

Coding:


Output:




No comments:

Post a Comment