Python Lab Experiments V
Python Lab Experiments V
a) Implement Python Script to perform various opera ons on string using string libraries.
b) Implement Python Script to check given string is palindrome or not.
c) Implement python script to accept line of text and find the number of characters, number of
vowels and number of blank spaces in it
s = "Hello, World!"
print("Length:", len(s))
print("Uppercase:", s.upper())
print("Lowercase:", s.lower())
print("Split:", s.split())
b) Palindrome Check
vowels = "aeiouAEIOU"
print("Characters:", len(text))