String in python part1 | Python tutorial in Hindi

Published: 27 February 2021
on channel: CodeWithRajat
2
0

String in python part1 | Python tutorial in Hindi


Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable. For example −

var1 = 'Hello World!'
var2 = "Python Programming"


Updating Strings
You can "update" an existing string by (re)assigning a variable to another string. The new value can be related to its previous value or to a completely different string altogether. For example −

Live Demo
#!/usr/bin/python


On this page of the site you can watch the video online String in python part1 | Python tutorial in Hindi with a duration of hours minute second in good quality, which was uploaded by the user CodeWithRajat 27 February 2021, share the link with friends and acquaintances, this video has already been watched 2 times on youtube and it was liked by 0 viewers. Enjoy your viewing!