Www.just.edu.jo
This assignment is designed to get you comfortable with using assignment statements, functions, and their associated modules. This homework is very similar to the previous one, in that you will be typing commands into the Python interactive shell and recording the results. As before, there are two tables, each of which challenges you to evaluate some python expressions. Submission: You must put all your work in one Folder named based on your Name and ID. Then compress this folder into one .rar or .zip file and upload your compressed file into your account on the JUST e-learning system. Requirements:[5 Points] Write a python script named “q1.py” to evaluate all of the following expressions. Then fill the following table (submit both your q1.py and the Table below): ExpressionResultmin(25, 4)max(25, 4)min(5,max(7,4))abs(25)abs(-25)round(25.6)round(-25.6)round(25.64, 0)round(25.64, 1)round(25.64, 2)len('Hello')chr(65)chr(66)ord('A')ord('AB')[5 Points] Write a python script named “q2.py” to evaluate all of the following expressions. Then fill the following table (submit both your q2.py and the Table below): ExpressionResultmath.sqrt(9)math.sqrt(-9)sqrt(4)math.floor(3.7)math.ceil(3.7)math.ceil(-3.7)math.trunc(3.7)math.trunc(-3.7)math.pimath.cos(math.pi)math.acos(1.0)math.emath.log(math.e)math.log(4,2)Note: To use a module, you must import it. Type the following into your Python script. import math ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- minecraft edu edition
- https www municipalonlinepayments
- minecraft edu download free
- minecraft edu edition recipes
- minecraft edu mod download
- minecraft edu launcher download
- minecraft edu free download
- alsde edu contacts
- edu perfect
- edu minecraft launcher
- minecraft edu free download pc
- minecraft edu classroom mode