Immutable strings & Assignment operator:Python tutorial 23

Publicado el: 28 febrero 2019
en el canal de: Divya Bharati
18
4

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...!!!


En esta página del sitio puede ver el video en línea Immutable strings & Assignment operator:Python tutorial 23 de Duración hora minuto segunda en buena calidad , que subió el usuario Divya Bharati 28 febrero 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 18 veces y le gustó 4 a los espectadores. Disfruta viendo!