- 1
Question number 13 on variable change
The provided code stores variable 7 and output it, change the code to output the value of the variable raised to the power of 3. This is what I did num = 7 Print(num) num = 7**3 Print(num)
14 Respuestas
+ 3
It's not necessary to print num twice.
So, you need to remove first print statement.
+ 1
What's your question then?
Is it not working..? Hoping P in print() is autocapitalized here..
+ 1
What's the error you can see?
Code is fine.
What is the task..? Share full details..
In which course? Anyways post task description..
+ 1
You could delete first 2 lines then.
num = 7**3
print(num)
+ 1
num = 7
print(num ** 3)
+ 1
Thanks guys it has worked
0
It's not working, line 1 and 2 was provided by the code tutor,
0
num = 7
print(num)
num = 7**3
print(num)
0
num = 7
print(num)
num = 7**3
print(num)
0
It's giving error
0
#Yes. You may need like this only..
num = 7 # or int( input() )
num = num ** 3
print(num)
0
Alabi Ayodele
Store 7 in a variable
num = 7
Now use this variable to get raised to the power of 3
So
print (num**3)
0
num = 7
Print( num ** 3)
0
Hello guys on test 36, I am having challenge:
def welcome ():
Print ("welcome, Bob")
Bob = input ()
Welcome ()