0

# Do I write a code that displays this information or a code to compute the equation?

num_1 = 5 num_2 = 4 "write a print statement that will produce this output." num_1 ** num_2 = 625

6th Sep 2020, 12:43 AM
MR. CMF
12 Antworten
+ 6
It worked for me. Is this not the answer wanted? https://code.sololearn.com/cnVfBuSTM4gq
6th Sep 2020, 4:34 PM
David Ashton
+ 3
print("num_1 ** num_2 = 625")
6th Sep 2020, 5:11 AM
David Ashton
+ 3
Or, print(f"num_1 ** num_2 = {num_1 ** num_2}")
6th Sep 2020, 5:13 AM
David Ashton
+ 2
Python.py num_1=5 num_2=4 ans = num_1**num_2 print(ans)
6th Sep 2020, 12:55 AM
Shubham Ingale
+ 1
Your equation worked and the equation that I posted works. I am not completely understanding this textbook question. I will wait until Tue and ask the instructor for clarification. Thank you for helping.
6th Sep 2020, 5:48 PM
MR. CMF
0
I have to create this equation to get =625 ?
6th Sep 2020, 12:57 AM
MR. CMF
0
Thank you, I will try that equation now.
6th Sep 2020, 5:16 AM
MR. CMF
0
I have tried both equations, but they do not work.
6th Sep 2020, 4:08 PM
MR. CMF
0
The heading is converting a math formula to a programming statement.
6th Sep 2020, 4:08 PM
MR. CMF
0
I think I figure it out. I was unaware of the import math feature in python. This is python 101 for me.
6th Sep 2020, 5:14 PM
MR. CMF
0
import math print(5**4)
6th Sep 2020, 5:21 PM
MR. CMF
0
print(f"{num_1"}**{num_2}={num_1**num_2}")
7th Sep 2020, 1:01 AM
Vision