Strings



Python - Strings


Strings are arrays of bytes representing Unicode characters.


Strings are defined either with a single quote or a double quotes.

like 'hello' is same as "hello"

You can display a string literal with the print() function

Example:

print("hello")
print('hello')


output:
hello
hello

string to Variable


Example:

a = "hello"
print(a)


Multiline String


You can assign a multiline string to a variable by using three quotes

Example:

a = """This is Python string"""
print(a)


output:This is Python string


RegEx SETS

Python - RegEx SETS

posted on 2019-11-12 23:06:24 - Python Tutorials


RegEx_Functions

Python - RegEx_Functions

posted on 2019-11-09 06:07:29 - Python Tutorials


RegEx_Sets

Python - RegEx_Sets

posted on 2019-11-09 05:30:54 - Python Tutorials


Prompt Examples

ChatGPT Prompt Examples

posted on 2023-06-21 22:37:19 - ChatGPT Tutorials


Use Cases

Chat GPT Key Use Cases

posted on 2023-06-21 21:03:17 - ChatGPT Tutorials


Prompt Frameworks

Prompt Frameworks

posted on 2023-06-21 19:33:06 - ChatGPT Tutorials