0

Hi, Sorry. I don't understand the question.

The provided code stores the value 7 in a variable, and outputs it. Change the code to output the value of the variable raised to the power of 3

10th Nov 2021, 10:02 AM
Jeffrey Lee
3 Antworten
+ 5
x = 7 print(x**3) ? Can you elaborate on the part of the question that you did not understand?
10th Nov 2021, 10:14 AM
Hatsy Rei
Hatsy Rei - avatar
0
x=7 x**3 = x*x*x = 7*7*7 = 343
10th Nov 2021, 12:05 PM
Jasy Fabiano
Jasy Fabiano - avatar
0
Probably the sentences. Let me do some revision.
10th Nov 2021, 1:16 PM
Jeffrey Lee