Skip to content

How to you raise and item to a power in Python?

x = 6**2
print (x)
#six is getting raised to the power of two
See also  Python code snippet - How to remove the last letter of a string ?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.