Some methods accept argument that modified behaviours.
Inputs that pass in arg inside of parentheses.
For example “lol”.searchfor(f)
index of gives string infest and positional number when given argument occurs.
Eg. Let tvshow=‘catdog’;
Slice accepts more then one argument ,extract section of a string. Without modifying original string.
Comma is used to separate argument.
Negative index can be passed
Replace is very powerful as it replaces variables but isn’t fully implemented.
Repeat option used to keep repeating such as “10,1”.repeat(5).
A lot of concepts to take in and learn, more activities needed to practise and revise.
zakariyesahid96
Comments