Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit df24ee9

Browse files
committed
small changes
1 parent eb010aa commit df24ee9

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

‎Computations/Calculate-Grades.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sub3=int(input("Third subject: "))
1717
sub4=int(input("Fourth subject: "))
1818
sub5=int(input("Fifth subject: "))
1919

20-
avg=(sub1+sub2+sub3+sub4+sub4)/5
20+
avg=(sub1+sub2+sub3+sub4+sub5)/5
2121

2222
if avg >= 90:
2323
print("Grade: A")

‎Easy-ones/Floor-Division.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import math
4848
num1 = int(input('Enter the first number: '))
4949
num2 = int(input('Enter the second number: '))
5050

51-
result = math.floor(num1//num2)
51+
result = math.floor(num1/num2)
5252
print(result)
5353
```
5454
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**

‎Easy-ones/Math-Power.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ Take two numbers from the users. Calculate the result of second number power of
77
## Hints
88
To power, you will need to use two asterisks symbols (two multiplication symbols). For example 4 to the power 3 will be
99

10-
11-
**result = 4**3**
10+
```python
11+
result = 4**3
12+
```
1213

1314
## Solution
1415
```python
@@ -21,7 +22,7 @@ print('Your result is: ', result)
2122
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**
2223

2324
## 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.
2526

2627

2728
## Alternative Solution

‎Easy-ones/Random-Number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ print(random_num)
2323
How will you generate a random integer number?
2424

2525
1. math.random
26-
2. math.randint
26+
2. random.randint
2727
3. random.randomint
2828

2929
<details>

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Always keep an open mind to learn multiple solutions to solve a problem.
112112
*Let’s do it.*
113113

114114
&nbsp;
115-
[![Next Page](assets/next-button.png)](Math-Power.md)
115+
[![Next Page](assets/next-button.png)](/Easy-ones/User-input-to-Number.md)
116116
&nbsp;
117117

118118
###### tags: `programmig-hero` `python` `float` `int` `math`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /