Question: Determine the value and the data type ( see Section 3 . 6 beginning on page 1 1 1 in the third edition of the

Determine the value and the data type (see Section 3.6 beginning on page 111 in the third edition of the Gaddis textbook) of each of the following expressions. If you wish, you may use the IDLE "shell" window to verify your results, but the goal is to be able to solve expressions like this without the computer. Again, just finding out the answers is NOT the goal. Being able to evaluate expressions without the computer s the goal!
For each expression, assume the following variable assignments have been made:
a =4
b =5
c =8.0
d =3.5
e =-6
2+ c Answer: 10.0(type float) b > a Answer: True (type boolean)
b <5 b <=5
a < e c==8
True and False True or False
a ==4 and b != a a + b
(a + b)* c (a + b)* c>100
a >4 or b >4 b >4 or a >4
3+4*2<=a+b 2*a + b==b +2**3 and c < a + b
c == d and a > d or e <0 c == d and a > d and e <0
c == d or a > d and e <0 c == d or a > d and e ==0
c == d or a > d or e ==0 c == d or e ==0 and a > d
Turn in your completed work at the beginning of the next class meeting at the latest.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!