- 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)

26th Mar 2022, 12:30 PM
Alabi Ayodele
Alabi Ayodele - avatar
14 Respuestas
+ 3
It's not necessary to print num twice. So, you need to remove first print statement.
26th Mar 2022, 12:35 PM
Simba
Simba - avatar
+ 1
What's your question then? Is it not working..? Hoping P in print() is autocapitalized here..
26th Mar 2022, 12:32 PM
Jayakrishna 🇮🇳
+ 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..
26th Mar 2022, 1:04 PM
Jayakrishna 🇮🇳
+ 1
You could delete first 2 lines then. num = 7**3 print(num)
26th Mar 2022, 1:16 PM
Simba
Simba - avatar
+ 1
num = 7 print(num ** 3)
26th Mar 2022, 2:33 PM
Lothar
Lothar - avatar
+ 1
Thanks guys it has worked
26th Mar 2022, 3:07 PM
Alabi Ayodele
Alabi Ayodele - avatar
0
It's not working, line 1 and 2 was provided by the code tutor,
26th Mar 2022, 12:54 PM
Alabi Ayodele
Alabi Ayodele - avatar
0
num = 7 print(num) num = 7**3 print(num)
26th Mar 2022, 12:59 PM
Alabi Ayodele
Alabi Ayodele - avatar
0
num = 7 print(num) num = 7**3 print(num)
26th Mar 2022, 1:00 PM
Alabi Ayodele
Alabi Ayodele - avatar
0
It's giving error
26th Mar 2022, 1:00 PM
Alabi Ayodele
Alabi Ayodele - avatar
0
#Yes. You may need like this only.. num = 7 # or int( input() ) num = num ** 3 print(num)
26th Mar 2022, 1:21 PM
Jayakrishna 🇮🇳
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)
26th Mar 2022, 2:30 PM
A͢J
A͢J - avatar
0
num = 7 Print( num ** 3)
30th Mar 2022, 7:22 AM
😍MASTER OF LOVE😍
😍MASTER OF LOVE😍 - avatar
0
Hello guys on test 36, I am having challenge: def welcome (): Print ("welcome, Bob") Bob = input () Welcome ()
8th Apr 2022, 11:08 AM
Alabi Ayodele
Alabi Ayodele - avatar