![]() | Operations and Operators |
|
Operations are “basic” functions with their own syntax. They have a special Operator (a sign or a word) that is the same as a function name. Unary Operators, operations which take one argument, are followed by their argument, and secondary operators are surrounded by their two arguments. | |
Here are some examples:
>>> 'GTnnAC' + 'GAATTC'
'GTnnACGAATTC'
>>> 'GAATTC' * 3
'GAATTCGAATTCGAATTC'
>>> 'n' in 'GTnnAC'
1
This is only a simpler way of writing these functions provided
by Python, because humans are in general more familiar with this
syntax closely related to the mathematical formal language.