You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Easy-ones/Math-Power.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,9 @@ Take two numbers from the users. Calculate the result of second number power of
7
7
## Hints
8
8
To power, you will need to use two asterisks symbols (two multiplication symbols). For example 4 to the power 3 will be
9
9
10
-
11
-
**result = 4**3**
10
+
```python
11
+
result =4**3
12
+
```
12
13
13
14
## Solution
14
15
```python
@@ -21,7 +22,7 @@ print('Your result is: ', result)
21
22
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**
22
23
23
24
## Think Different
24
-
Python has a built-in function named pow[blue]. The pow is a short form of the word power. And you can pass 2 numbers to the pow function. It will give you the second number as a power of the first number.
25
+
Python has a built-in function named `pow`. The pow is a short form of the word power. And you can pass 2 numbers to the pow function. It will give you the second number as a power of the first number.
0 commit comments