Python Text String: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
 
No edit summary
Line 3: Line 3:
----
----
----
----
== References ==
=== 2018 ===
* https://www.programiz.com/python-programming/string
** QUOTE: ... In Python, string is a sequence of [[Unicode character]]. Unicode was introduced to include every character in all languages and bring uniformity in encoding. You can learn more about Unicode from here. ...
my_string = 'Hello'
print(my_string) <BR>
my_string = "Hello"
print(my_string) <BR>
my_string = '''Hello'''
print(my_string) <BR>
# triple quotes string can extend multiple lines
my_string = """Hello, welcome to
            the world of Python"""
print(my_string)
----
__NOTOC__

Revision as of 01:02, 10 November 2018

A Python Text String is a text string in a Python data structure.



References

2018

my_string = 'Hello'
print(my_string) 
my_string = "Hello" print(my_string)
my_string = Hello print(my_string)
# triple quotes string can extend multiple lines my_string = """Hello, welcome to the world of Python""" print(my_string)