What is a String in Python? | Python Basics

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: Learn Center
579
6

What is String in Python?

Python string is the collection of the characters surrounded by single quotes, double quotes, or triple quotes. The computer does not understand the characters; internally, it stores manipulated character as the combination of the 0's and 1's.

Each character is encoded in the ASCII or Unicode character. So we can say that Python strings are also called the collection of Unicode characters.

In Python, strings are used for representing textual data. A string is a sequence of characters enclosed in either single quotes ('') or double quotes (“”). The Python language provides various built-in methods and functionalities to work with strings efficiently.

Python strings are "immutable" which means they cannot be changed after they are created (Java strings also use this immutable style). Since strings can't be changed, we construct new strings as we go to represent computed values.

For Live Online Classes:
Visit Us: www.learncenter.in
Mail Us: learncenter.in@gmail.com

#python, #pythonprogramming, #string


Auf dieser Seite können Sie das Online-Video What is a String in Python? | Python Basics mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Learn Center 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 579 Mal angesehen und es wurde von 6 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!