Special Operators for String Operations in Pythons 


·        String special operators:

Some special operators are used in python to assist the user. The list of operators and their use is given below:

Ø  +






Ø  *



Ø  [ ]

 

 

 

Ø [:]

 

Ø In

Ø Not In

                

·        String formatting operator:

% is   a special keyword is used for string formatting, it operates with the following operators such as for string %s for digit %d etc.

 






Post a Comment

Previous Post Next Post