Immutable strings & Assignment operator:Python tutorial 23

Published: 28 February 2019
on channel: 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...!!!


On this page of the site you can watch the video online Immutable strings & Assignment operator:Python tutorial 23 with a duration of hours minute second in good quality, which was uploaded by the user Divya Bharati 28 February 2019, share the link with friends and acquaintances, this video has already been watched 18 times on youtube and it was liked by 4 viewers. Enjoy your viewing!