Using Python Libraries Sumita Arora Practical Class 12 Computer science Solution


P.I.P :- 4.1






P.I.P :- 4.2


Q1. Area of an equilateral triangle can be computed as √3/4 a2 where a is its side. Write a program to obtain side from user and print the area of equilateral triangle with side a.


Q2. Area of regular polygon can be computed as :

½ n sin (360 / n ) s2 

Where n = number of sides and s = length from center to a corner.

Write a program to obtain values n and s from user and print area of polygon.






Q4. Write a program to randomly generate a number from the range 100-1000 both inclusive and print the generated number as :-

Randomly selected lucky viewer is : < number >



P.I.P :- 4.3



Q1. Mark created following directory structure for his module namely chk:




Q2. Create a package as per following:

After creation, this should be importable in a program with import statement. It should also have proper docstring so that help() function gives proper information about it.

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Please Provide all the solutions

    ReplyDelete
    Replies
    1. Here only programming Question's answer
      Remains Question 's answer are coming soon

      Delete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post