To clear or remove a string, you assign an empty string or use the del statement, respectively : Assignment : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Assignment »

 

To clear or remove a string, you assign an empty string or use the del statement, respectively


aString = ''
print aString
del aString



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Assignment