Lesson goal: Introduction to Variables

Previous: Speaking numbers properly | Home | Next: Mathematical expressions with variables

Test question: Write a program that sets two variables, a and x to the values 5 and -7, respectively. Using these variables, assign the variable result equal to the the value of the expression a^x-a^2+5/x+a*(math.pi-x). After this, display the value in the variable result using a print statement.

Write your code that will answer the test question...

Type your code here:


See your results here: