"""# Python Program to Delete
characters from a String """
>>> a = "Hyd is a green city"
>>> print(a)
# Deleting a character
# of the String
>>> del a[2] # Error I can't delete index wise
>>> del a# Ok we can delete entire strig
>>> print(a)
"""output
Hyd is a green city
Error
>>> """"
characters from a String """
>>> a = "Hyd is a green city"
>>> print(a)
# Deleting a character
# of the String
>>> del a[2] # Error I can't delete index wise
>>> del a# Ok we can delete entire strig
>>> print(a)
"""output
Hyd is a green city
Error
>>> """"
You may like the following posts:
No comments:
Post a Comment