BCSE101E-ELA
COMPUTER PROGRAMMING: PYTHON
ASSIGNMENT: 4
NAME: SUMAN T
REG NO: 24BEI0052
1. Display the data in the given format(25 letters).
Chicken Pizza……………………300
Code:
Output:
2. Write a program to sort letters of a string.
Code:
Output:
Suman 24BEI0052
3. Write a program to display credit card number of first 12 digit number as * and
display only last four digit number.
Code:
Output:
4. Check if a given string is palindrome or not.
Code:
Output:
Suman 24BEI0052
5. Convert a given string into palindrome.
Code:
Output:
6. Find userid and domain name from email address.
Code:
Suman 24BEI0052
Output:
7. Check if two string are anagram or not.
Code:
Output:
Suman 24BEI0052
8. Check if a password and confirm password is the same using casefold().
Code:
Output:
9. Remove punctuations in string.
Code:
Suman 24BEI0052
Output:
Suman 24BEI0052