Professional Documents
Culture Documents
Practical 4 Python
Practical 4 Python
1. WAP with function QnR(n,d) that returns quotient and reminder after dividing n by d.
Source code:-
Output:
2. WAP that takes two lists and returns True if they have at least one common member.
Output:
3. WAP program to print a specified list after removing the 0th, 2nd, 4th and 5th elements.
Source code:-
Output:
Source code:-
Output:
5. Formulate a problem of your own and demonstrate list mutability in python.
Source code:-
Output:
6. WAP to check whether an input sentence is a pangram or not. (Pangrams are words or sentences containing
every letter of the alphabet at least once)
Source code:-
Output: