28.10.2021 Views

Python Tutorial ( PDFDrive )

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Return Value .......................................................................................... 116

Example ................................................................................................. 116

Description ............................................................................................. 116

Syntax .................................................................................................... 116

Parameters ............................................................................................. 116

Return Value .......................................................................................... 116

Example ................................................................................................. 117

Description ............................................................................................. 117

Syntax .................................................................................................... 117

Parameters ............................................................................................. 117

Return Value .......................................................................................... 117

Example ................................................................................................. 117

Description ............................................................................................. 118

Syntax .................................................................................................... 118

Parameters ............................................................................................. 118

Return Value .......................................................................................... 118

Example ................................................................................................. 118

Mathematical Constants: ........................................................................ 119

Python Strings ....................................................................... 120

Accessing Values in Strings: .................................................................. 120

Updating Strings: .................................................................................... 120

Escape Characters: ................................................................................ 121

String Special Operators: ....................................................................... 121

String Formatting Operator: ................................................................... 122

Triple Quotes: ......................................................................................... 123

Raw String: ............................................................................................. 124

Unicode String: ....................................................................................... 124

Built-in String Methods: .......................................................................... 125

Description ............................................................................................. 127

Syntax .................................................................................................... 127

Parameters ............................................................................................. 127

Return Value .......................................................................................... 127

Example ................................................................................................. 127

Description ............................................................................................. 128

Syntax .................................................................................................... 128

Parameters ............................................................................................. 128

Return Value .......................................................................................... 128

Example ................................................................................................. 128

Description ............................................................................................. 128

TUTORIALS POINT

Simply Easy Learning

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!