0% found this document useful (0 votes)
10 views7 pages

Python Programming Assignment 4

Uploaded by

pmkavinkumar45
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views7 pages

Python Programming Assignment 4

Uploaded by

pmkavinkumar45
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like