.. 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 1
==================

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

Parson's problems in Python.

ps_hello
-----------------------
Construct a program that prints out hello and world on separate lines.

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

ps_simple_function
-----------------------
Create a function that prints out Hello functions.

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

ps_simple_params
----------------------------
Create a function that adds 2 to the input parameter

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

ps_return_bigger_or_none
----------------------------------
Construct a function that returns the bigger value of the given arguments. If a and b are equal, it should return None.

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

ps_python_addition
-----------------------
Construct a program that adds numbers prints the value 8.

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

ps_python_iteration_addition
---------------------------------
Construct a program that adds 2 in a loop until the value becomes 8 and prints the value 8.

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


