Task of SYBSC CS Imp
Task of SYBSC CS Imp
7. Use python code find value of f (−2), f (0), f (2) where f (x) = x2–5x + 6.
f (x) = x3+5x.
9. Write python code to test whether given number is divisible by 2 or 3 or 5.
10. Repeat the following string 11 times using the string operator ‘*’ on
Python.
• LATEX
• MATLAB
11. Use Python code to find sum of first thirty natural numbers.
12. Using Python construct the following matrices.
13. Generate all the prime numbers between 1 to 100 using Python code.
14. Using python code sort the tuple in ascending and descending order
5, -3, 0, 1, 6,-6, 2.
16. Write Python code to find the square of odd numbers from 1 to 20 using
while loop.
18. Find the data type of the following data by using Python code.
a. number
b. 31.25
c. 8 + 4j
d. Mathematics
e. 49
19. Write Python program to find all positive prime numbers less then given
number n.
20. Evaluate following expression on Python.