Close
Close Window

Demo Exercises from Pitt-Acos

Chapter 2 Python Parsons Problems

Show Source |    | About   «  1.9. JSVEE Python 9   ::   Contents   ::   2.2. jsParsons Python 2  »

2.1. jsParsons Python 1

2.1.1. About

Parson's problems in Python.

2.1.2. ps_hello

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

2.1.3. ps_simple_function

Create a function that prints out Hello functions.

2.1.4. ps_simple_params

Create a function that adds 2 to the input parameter

2.1.5. 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.

2.1.6. ps_python_addition

Construct a program that adds numbers prints the value 8.

2.1.7. ps_python_iteration_addition

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

   «  1.9. JSVEE Python 9   ::   Contents   ::   2.2. jsParsons Python 2  »

nsf
Close Window