.. This file is part of the OpenDSA eTextbook project. See
.. http://opendsa.org for more details.
.. Copyright (c) 2012-2020 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.

.. avmetadata::
   :author: Hamza Manzoor
   :requires:
   :satisfies: Python Basics
   :topic: Parsons Python


jsParsons Python 6
==================

About
-----------------------

Parson's problems in Python.

ps_python_try_adding
--------------------------------
Construct a function that adds two numbers together and handles non-numeric input through exception handling.

.. extrtoolembed:: 'ps_python_try_adding'
   :learning_tool: mastery-grid-jsparsons-python

ps_python_class_point
---------------------------------
Construct a class Point which has a method to calculate distance from another instance of Point.

.. extrtoolembed:: 'ps_python_class_point'
   :learning_tool: mastery-grid-jsparsons-python

ps_python_2d_list
-------------------------------------
Construct a program that prints out [[0, 1, 2], [3, 4, 5], [6, 7, 99]] from the given equation.

.. extrtoolembed:: 'ps_python_2d_list'
   :learning_tool: mastery-grid-jsparsons-python

ps_python_nested_loops
-------------------------------
Construct a program that first prints out 15, then 14, then 12, then 9 and finally 5 on consecutive lines using nested loops.

.. extrtoolembed:: 'ps_python_nested_loops'
   :learning_tool: mastery-grid-jsparsons-python


