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
12 Réponses
+ 6
It worked for me. Is this not the answer wanted?
https://code.sololearn.com/cnVfBuSTM4gq
+ 3
print("num_1 ** num_2 = 625")
+ 3
Or,
print(f"num_1 ** num_2 = {num_1 ** num_2}")
+ 2
Python.py
num_1=5
num_2=4
ans = num_1**num_2
print(ans)
+ 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.
0
I have to create this equation to get =625 ?
0
Thank you, I will try that equation now.
0
I have tried both equations, but they do not work.
0
The heading is converting a math formula to a programming statement.
0
I think I figure it out. I was unaware of the import math feature in python. This is python 101 for me.
0
import math
print(5**4)
0
print(f"{num_1"}**{num_2}={num_1**num_2}")