- label 'posif else 'negprint(labelneg in [ ]print('posif else 'neg'neg basic types string strings in python are immutable in [ ]string 'my stringstring[ 'ttypeerror traceback (most recent call lastin string 'my string---- string[ 'ttypeerror'strobject does not support item assignment in [ ]string replace(' '' 'out[ ]'ty stringin [ ]string out[ ]'my stringstring is iterable in [ ]for in 'my string'print(sm formating of strings