what is string operation explain qith example
Answers
Answered by
1
A N S W E R :
Example #1 – Assignment Operator “=.”
- Python string can be defined with either single quotes [' '], double quotes[“ ”] or triple quotes[''' ''']. var_name = “string” assigns “string” to variable var_name. Códe: string1 = "hello" string2 = 'hello'
Hope It Helps You!!! <3
Answered by
0
In python, String operators represent the different types of operations that can be employed on the program’s string type of variables. Python allows several string operators that can be applied on the python string are as below:
Assignment operator: “=.”
Concatenate operator: “+.”
String repetition operator: “*.”
String slicing operator: “[]”
String comparison operator: “==” & “!=”
Membership operator: “in” & “not in”
Escape sequence operator: “\.”
String formatting operator: “%” & “{}”
mark me as brainliest
Similar questions