Join() method
Is used to join the elements of an iterable
Syntax is [Link](iterable)
An iterable is an object which is capable of returning it’s members one
at a time
Example of iterables are list, dictionary, tuple ,set and string
For example we have a list l1=[ f,a,s,t)
Example 2
l2=[ I, am , James]
Example 3
l3=[name, of, a, string]
Example 4
d=[name,: Adam, country ,:US]
Replace() method
Is used to replace a specified string with another string
Syntax is string. replace(oldstring,newstring,count)
Example 1 “I love to eat bananas “
Example 2 a=” love to eat apples”
Homework
1. What is the output of “Neso3Academy3is3the3best3Academy”
[Link](3,””)
2. (1,2)
Can we use the join method without any space between them
Answer is YES