Python Text String: Difference between revisions

From GM-RKB
Jump to navigation Jump to search
m (Text replacement - "---- == Refe" to "---- == Refe")
m (Text replacement - "---- __NOTOC__" to "---- __NOTOC__")
Line 22: Line 22:


----
----
__NOTOC__
__NOTOC__
[[Category:Concept]]
[[Category:Concept]]

Revision as of 17:33, 8 March 2021

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)