Subscribe Us

Advertisement

o level m3 r5 python practical

 


Q1. Write a Python program to print the sum of series 13 + 23 + 33 + 43 + …….+ n3

till n-th term. N is the value given by the user.

 

Q.2.  Write a Python Program to find the successor and predecessor of the largest

element in an array.

 

Q.3. Write a Python program that takes list of numbers as input from the user and

produces a cumulative list where each element in the list at any position n is

sum of all elements at positions upto n-1



Q. 1  Write a Python function to find the sum of all numbers between 100 and 500 which

are divisible by 2.

 

Q . 2  Write a Python function to get two matrices and multiply them. Make sure that number

of columns of first matrix = number of rows of second.

 

Q . 3Write a Python function which takes list of integers as input and finds:

(a) The largest positive number in the list

(b) The smallest negative number in the list

(c) Sum of all positive numbers in the list

 

 

 

 

Mutable and immutable data types?

If elif else satatement used for

How do you define a python function

Loops name and type in python

What is variable in python








1. Program to multiply two matrices using nested loops

3x3 matrix

X = [[12,7,3],

    [4 ,5,6],

    [7 ,8,9]]

# 3x4 matrix

Y = [[5,8,1,2],

    [6,7,3,0],

    [4,5,9,1]]

2. Python Program to Convert Decimal to Binary Using Recursion

 

3 .Python program to find the sum of natural using recursive function

 

 

Viva

Different in set and dictionary

Python sequent data types

Python 2 library name

Python developer and year





M3  r5 python

  Python program to print the pattern

 

*

* * *

* * * * *

* * * * * * *

* * * * * * * * *

 

Q 2

Python Program to Find Factorial of Number Using Recursion

Q 3

Write python program to print number between range and  sum ,average of even number ,  where range is input by user

 

Viva

 

How to import numbpy

Import numpy as np

How many file modes available in python

R+

W+

A+

 

Python developed by using which language

Who developed python and when

How many keywords in python

What is flowchart?

Algorithm ?pseudo?

 



M3 r5 python

Write a program to generate 6 digit random secure OTP between 100000 to 999999.

 

Write a function that removes all duplicates from a list while maintaining the original order

 

Write a Python function that takes a string and returns the number of vowels in it.

 

 

Viva python

What are sequence data types

What is anonymous function

What is recursion

Name any three module in python

 

 



M3  r5

Q 1

Write Python program to calculate Electricity Bill

unit > 500 then 9.25 per unit and surcharge 80

unit > 300 then 7.25 per unit and surcharge 70

unit > 200 then 5.25 per unit and surcharge 50  and so  on

 

Q 2 Python program to input 4 number and print in ascending order

 

Q 3 Python program to compute the result when two numbers and one operator is given by user

 

 

Viva

 

Different in list and tuple

Different in set and dict

What is numpy

What is file handling



M3 R5

 

1 Write a program that take in a sentence as input and display the number of words number of capital letter number of small letter and number of special symbols

 

2 Accept the name of the labour and number of hours worked calculate and display the wages the program should run for n numbers of labourers as specified by the user

 

3  Write a program to compute the wages of a daily laborer as per the following rules:

Hours Worked Rate Applicable:

Upto first 8 hrs Rs 100/-

a) For next 4 hrs Rs 30/- per hr extra

b) For next 4 hrs Rs 40/- per hr extra

c) For next 4 hrs Rs 50/- per hr extra

d) For rest Rs 60/- per hr extra

 

 

viva

 

full form of idle

what is file handling in python

types of numeric data type in python

name the sequence data types

def abcd():



Q . 1 .Write a function that takes two filenames f1 and f2 as input. The function should read the contents of f1 line by line and write them onto f2.

 

Q .2 . Write a NumPy program to find the most frequent value in an array.

 

Q .3 .Take two NumPy arrays having two dimensions. Concatenate the arrays on axis 1.

 

 

Viva

What is numpy

Name any three module in python

Name any three built in function in python

Name any three function used for file handling

Explain mutable and immutable data types

What are local and global scope

Define the rules of declaring  a variable




Post a Comment

1 Comments