0% found this document useful (0 votes)
41 views

Strings - Assignments

Uploaded by

krishprem pspk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Strings - Assignments

Uploaded by

krishprem pspk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Strings

1) name = ‘Mahesh babu’. Reverse words in a given String.


2) How to get the 3th character in name variable.
3) How to remove 3th character in name variable.
4) How to get the 7th character till end of the content in name variable.
5) How to remove 7th character till end of the content in name variable.
6) Find the length of name variable.
7) remove Spaces in name variable.
8) Change the characters in name variable to all uppercase.
9) slicing in Python to rotate name
10) Verify all methods in String class.
11) Check if a ‘babu’ is present in name or not.
12) Remove ‘babu’from name
13) Find the content of name till ‘babu’
14) Python program to check whether the string is Symmetrical or Palindrome
15) Reverse words in a given String in Python
16) Ways to remove i’th character from string in Python
17) Find length of a string in python (4 ways)
18) Python – Avoid Spaces in a given string
19) Python program to print even length words in a string
20) Python – Uppercase Half String
21) Python program to capitalize the first and last character of each word in a string
22) Python program to check if a string has at least one letter and one number
23) Python Program to accept the strings which contains all vowels
24) Python program Count the Number of matching characters in a pair of string
25) Python program to count number of vowels using sets in given string
26) Python Program to remove all duplicates from a given string
27) Python program to identify Least Frequent Character in String
28) Python program to identify Maximum frequency character in String
29) Python program to identify Odd Frequency Characters
30) Python program to identify Specific Characters Frequency in String List
31) Python program to identify Frequency of every character in a given String
32) Python Program to check if a string contains any special character
33) Generating random strings until a given string is generated
34) Find words which are greater than given length k
35) Python program for removing ith character from a string
36) Python program to split and join a string
37) Python program to find uncommon words from two Strings
38) Python program to Swap commas and dots in a String
39) Python program to get Permutation of a given string without using inbuilt function.

You might also like