28.10.2021 Views

Python Tutorial ( PDFDrive )

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters ............................................................................................. 294

Return Value .......................................................................................... 294

Example ................................................................................................. 294

Description ............................................................................................. 295

Syntax .................................................................................................... 295

Parameters ............................................................................................. 295

Return Value .......................................................................................... 295

Example ................................................................................................. 295

Description ............................................................................................. 296

Syntax .................................................................................................... 296

Parameters ............................................................................................. 296

Return Value .......................................................................................... 296

Example ................................................................................................. 296

Description ............................................................................................. 296

Syntax .................................................................................................... 297

Parameters ............................................................................................. 297

Return Value .......................................................................................... 297

Example ................................................................................................. 297

Description ............................................................................................. 297

Syntax .................................................................................................... 297

Parameters ............................................................................................. 297

Return Value .......................................................................................... 298

Example ................................................................................................. 298

Description ............................................................................................. 298

Syntax .................................................................................................... 298

Parameters ............................................................................................. 298

Return Value .......................................................................................... 298

Example ................................................................................................. 299

Description ............................................................................................. 299

Syntax .................................................................................................... 299

Parameters ............................................................................................. 299

Return Value .......................................................................................... 300

Example ................................................................................................. 300

Python Exceptions ................................................................. 301

The assert Statement: ............................................................................ 302

Handling an exception: ........................................................................... 303

SYNTAX: ................................................................................................ 303

TUTORIALS POINT

Simply Easy Learning

EXAMPLE: ........................................................................................... 304

EXAMPLE: ........................................................................................... 304

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

Saved successfully!

Ooh no, something went wrong!