Question: Under the line print ( ' - - - 1 - - - ' ) , write Python code to: 1 . Assign the integer

Under the line print('---1---'), write Python code to:
1. Assign the integer 42 to the variable a.
2. Assign the float 3.1415 to the variable b.
3. Assign the string "15" to the variable c.
4. Assign the boolean True to the variable d.
5. Evaluate 5 minus 3.7 and assign that expression to the variable e.
6. Check whether 8 is greater than 5 and assign that expression to the variable f.
7. Reassign the variable a to hold the value 20.
8. Concatenate c and "12" and assign the result to variable g. Don't change the
value in c.

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 Programming Questions!