How can I use the power function in python 2.7?

0 votes
Can you show an example?
May 15 in Python by Waseem
• 3,480 points
13 views

1 answer to this question.

0 votes
print(pow(3,4))

#this will return the exponentiation of 3 to the power 4.
answered May 20 by Mohammad
• 1,500 points

Related Questions In Python

0 votes
0 answers

How can I use the sleep function in a python program?

Can you give a sample code for ...READ MORE

May 23 in Python by Waseem
• 3,480 points

edited May 24 by Omkar 16 views
0 votes
0 answers

How can I use help in the python console?

Can you give the syntax to print ...READ MORE

Jun 11 in Python by Waseem
• 3,480 points
9 views
+2 votes
3 answers

How can I play an audio file in the background using Python?

down voteacceptedFor windows: you could use  winsound.SND_ASYNC to play them ...READ MORE

answered Apr 3, 2018 in Python by charlie_brown
• 7,710 points
1,318 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 128 views
+4 votes
6 answers
0 votes
1 answer

How can I find the square of a number in python?

You can use the exponentiation operator or ...READ MORE

answered May 20 in Python by Mohammad
• 1,500 points
20 views
0 votes
1 answer

how can i import the tensorflow library in python?

to import the tensorflow library in your ...READ MORE

answered May 20 in Python by Mohammad
• 1,500 points
15 views