Professional Documents
Culture Documents
CS 121 - Object Oriented Programming (Lec 4)
CS 121 - Object Oriented Programming (Lec 4)
Object Oriented
Programming
Lecture 04
By: Syed Shahrooz Shamim
Programming with
PYTHON
Strings are Arrays Like many other popular
programming languages, strings in Python are
String
arrays of bytes representing unicode
characters.
Note:-
Len() is function And rest are method().
Method are always accessed with . DOT
Replace() method (String)
Note:-
Count from h which is in position 0
and I of is at 3rd position.
find() Method in String
Note:-
Used to count specific items in list
Useful Function In List : Sort()
Useful Function In List : Clear()