This video covers about strings which show that string are #immutable. It also covers #assignment operator.This is second last video of CHAPTER-2. Must watch previous videos to make it more clear...
Source codes are given below:
string="welcome"
print(string)
print(string[2])
print(string.replace('l','L'))
new_string=string.replace('l','L')
print(new_string)
new_string=string.replace('w','W')
print(new_string)
--------------#Assignment operator-------------
name="Divya"
name=name+"bhi"
print(name)
---one more syntax----
name="Divya"
name+="bhi"
print(name)
age=22
age=age+1
print(age)
age-+10
age*=2
print(age)
Must type these codes & understand it carefully.
Thank you...!!!
Nesta página do site você pode assistir ao vídeo on-line Immutable strings & Assignment operator:Python tutorial 23 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Divya Bharati 28 Fevereiro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 18 vezes e gostou 4 espectadores. Boa visualização!