Code Challenge 1

Code Challenge:

Write suitable arithmetic expressions for the displayed descriptions.

This is meant as a practice exercise for you to get used to some basic syntax in IDLE. So there may be several correct responses for some of the descriptions.
1. Sum of 21 and 62
2. Difference between 43 and 17
3. 36 mod 5
4. Sum of 6 and 4 multiplied by 10
5. 23 to the 5th power
6. An expression that will result in 19 and which includes multiplication
7. Sum of 177 mod 4 and 223 mod 5
8. Difference between 3rd power of 14 and 3rd power of 13
9. An expression that will result in 0, which does not include multiplication and contains at least 3 arithmetic operators
10. An expression that includes all six arithmetic operators, addition (+), subtraction (-), multiplication (*), division (/), modulo (%) and power (**)


Post your answers in the comments.

Comments

Popular posts from this blog

Comparing Python 2.x and Python 3.x

Syntax of Python

IDLE