Skip to content

Commit 2df2e7b

Browse files
committed
some changes and tag update
2 parents df24ee9 + fcfd552 commit 2df2e7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+214
-172
lines changed

Computations/Calculate-Grades.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ After that, we are running a simple if-else to determine the grade.
4141
[![Next Page](../assets/next-button.png)](Gravitational-Force.md)
4242
 
4343

44-
###### tags: `programmig-hero` `python` `float` `int` `math`
44+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Computations/Complex-Interest.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ Take money borrowed, interest and duration as input. Then, compute the compound
55

66
### Hint
77
Compound interest formula is:
8-
8+
```python
99
A = P(1+r/100)t
10+
```
1011

1112
Here, P is the principal amount; it is the amount that you borrowed. r is the interest rate in percentage and t is the time.
1213

@@ -43,4 +44,4 @@ To apply the same power on multiple things, put them inside parentheses and then
4344
[![Next Page](../assets/next-button.png)](Calculate-Grades.md)
4445
 
4546

46-
###### tags: `programmig-hero` `python` `float` `int` `math`
47+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Computations/Gravitational-Force.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Compute gravitational force between two objects.
66
## Hint
77
The formula for gravitational force is
88

9-
**F = G m1m2/r2**
9+
`F = G m^1m^2/r^2`
1010

1111
Here G is the gravitational constant. Its value is 6.673*10-11
1212

@@ -31,13 +31,13 @@ print("The gravitational force is:", round(force, 5),"N")
3131
## Explanation
3232
The calculation is simple. Only two things need to be learned from this.
3333

34-
**Have a look, how we wrote 6.673*10-11**
34+
`Have a look, how we wrote 6.673*10-^11`
3535

36-
> Also, note that while displaying the force, we used a round function. In the round function, we passed the force, the variable we want to display. Then we passed another parameter to tell, how many decimal points we want to display.
36+
Also, note that while displaying the force, we used a round function. In the round function, we passed the force, the variable we want to display. Then we passed another parameter to tell, how many decimal points we want to display.
3737

3838

3939
 
4040
[![Next Page](../assets/next-button.png)](Triangle-Area.md)
4141
 
4242

43-
###### tags: `programmig-hero` `python` `float` `int` `math`
43+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Computations/Simple-Interest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Read the code. I think you don’t need any extra explanation here.
3434
[![Next Page](../assets/next-button.png)](Complex-Interest.md)
3535
 
3636

37-
###### tags: `programmig-hero` `python` `float` `int` `math`
37+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Computations/Triangle-Area.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The math module has a lot of math-related functionalities.
6464

6565

6666
 
67-
[![Next Page](../assets/next-button.png)](..README.md)
67+
[![Next Page](../assets/next-button.png)](../Prime-number/Check-Prime.md)
6868
 
6969

70-
###### tags: `programmig-hero` `python` `float` `int` `math`
70+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Conversions/Celsius-to-Fahrenheit.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ print("Temperature in Fahrenheit:", fahrenheit)
2323
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**
2424

2525
 
26-
[![Next Page](../assets/next-button.png)](../README.md)
26+
[![Next Page](../assets/next-button.png)](Decimal-to-binary.md)
2727
 
2828

29-
###### tags: `programmig-hero` `python` `float` `int` `math`
29+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
3030

Conversions/Decimal-to-binary-recursive.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ After coding for a while, recursive will become fun. Until then, recursive funct
88
So, don’t worry if you felt confused. You are not alone. I am in the same condition as well.
99

1010
## Recursive
11-
```python=
11+
```python
1212
def dec_to_binary(n):
1313
if n > 1:
1414
dec_to_binary(n//2)
1515
print(n % 2,end = '')
1616
```
1717

1818
## decimal number
19-
```python=
19+
```python
2020
num = int(input("Your decimal number: "))
2121
dec_to_binary(num)
2222
print(" ")
@@ -42,7 +42,7 @@ There are multiple ways to format the print string. Google it, when needed.
4242

4343

4444
 
45-
[![Next Page](../assets/next-button.png)](../README.md)
45+
[![Next Page](../assets/next-button.png)](../Solution-Strategy.md)
4646
 
4747

48-
###### tags: `programmig-hero` `python` `float` `int` `math`
48+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Conversions/Decimal-to-binary.md

+6-17
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ While dividing, you will keep the remainder. These remainders will be used to bu
2121

2222
Then, reverse the order of the reminder, to get the binary number.
2323

24-
**Give me more: non-premium**
25-
Let's say, you want to get the binary number of 233. You will start dividing by 2, store the remainder on a list. And then, set the number by the result of the division
26-
27-
So, if you divide 233 by 2, the result will be 116 and the remainder will be 1.
28-
29-
Keep doing it until the number becomes 0.
30-
31-
Then you will reverse the list.
32-
33-
Finally, you have to put the binary bits (0 and 1) in one number to get the final binary.
34-
3524
## Solution
3625
I looked into the below code 7 times to understand. Still trying to figure it out...So, spend some time here to look at the code:
3726

@@ -89,10 +78,10 @@ If you keep trying and revisiting , again and again, these will start making sen
8978

9079
## Quiz
9180

92-
1. What is a binary number?
93-
2. Numbers written on a trash bin
94-
3. Numbers that use 0,1 only
95-
4. Numbers with any 2 digits
81+
What is a binary number?
82+
1. Numbers written on a trash bin
83+
2. Numbers that use 0,1 only
84+
3. Numbers with any 2 digits
9685

9786
<details>
9887
<summary><b>Show Answer</b></summary>
@@ -105,7 +94,7 @@ Binary numbers use 0 and 1 only.
10594

10695

10796
&nbsp;
108-
[![Next Page](../assets/next-button.png)](../README.md)
97+
[![Next Page](../assets/next-button.png)](Decimal-to-binary-recursive.md)
10998
&nbsp;
11099

111-
###### tags: `programmig-hero` `python` `float` `int` `math`
100+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Conversions/Miles-to-Kilometers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Go to the code editor and then try it yourself. When you do it yourself without
3535

3636

3737
&nbsp;
38-
[![Next Page](../assets/next-button.png)](../README.md)
38+
[![Next Page](../assets/next-button.png)](Celsius-to-Fahrenheit.md)
3939
&nbsp;
4040

41-
###### tags: `programmig-hero` `python` `float` `int` `math`
41+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
4242

Easy-ones/Floor-Division.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ print(result)
2727
When you divide one number by another you get two things. One is called the integer part of the division. Another is the remainder.
2828

2929
To get the quotient (result without the remainder), you can use two-division symbols.
30-
30+
```python
3131
print(37//10)
32+
37 = 3*10+7
33+
```
3234

3335
## Think different
3436
Another alternative approach is to use the floor method from the math module. If you pass a number with a fraction to the math.floor function, it will return you the integer part of the number.
@@ -72,5 +74,5 @@ Use // to get floor division.
7274
[![Next Page](../assets/next-button.png)](Temporary-variable.md)
7375
&nbsp;
7476

75-
###### tags: `programmig-hero` `python` `float` `int` `math`
77+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
7678

Easy-ones/Math-Power.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ 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-
```python
11-
result = 4**3
12-
```
10+
11+
`result = 4**3`
1312

1413
## Solution
1514
```python
@@ -26,20 +25,19 @@ Python has a built-in function named `pow`. The pow is a short form of the word
2625

2726

2827
## Alternative Solution
29-
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.
28+
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.
3029

3130
```python
3231
base_num = int(input('Give me the base number: '))
3332
power_num = int(input('Give me the power number: '))
3433
result = pow(base_num, power_num)
3534
print('Your result is: ', result)
36-
3735
```
3836
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**
3937

4038
&nbsp;
4139
[![Next Page](../assets/next-button.png)](Random-Number.md)
4240
&nbsp;
4341

44-
###### tags: `programmig-hero` `python` `float` `int` `math`
42+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
4543

Easy-ones/Random-Number.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Create a random number between 0 to 10
77
## Hints
88
To create a random number, you have to import a built-in library named random. And then you can call the randint method on it
99

10-
##### result = 4**3
10+
`result = 4**3`
1111

1212
## Solution
1313

@@ -39,4 +39,4 @@ Use math.randomint to get a random integer.
3939
[![Next Page](../assets/next-button.png)](Floor-Division.md)
4040
&nbsp;
4141

42-
###### tags: `programmig-hero` `python` `float` `int` `math`
42+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Easy-ones/Temporary-variable.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ How would you swap two variables?
6565
Use temp variable to swap two variables. <br>
6666

6767
&nbsp;
68-
[![Next Page](../assets/next-button.png)](#)
68+
[![Next Page](../assets/next-button.png)](../Number-Related/max-of-two.md)
6969
&nbsp;
7070

71-
###### tags: `programmig-hero` `python` `float` `int` `math`
71+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
7272

7373

Easy-ones/User-input-to-Number.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ Use int or float to convert user input to a number. <br>
5656
[![Next Page](../assets/next-button.png)](Math-Power.md)
5757
&nbsp;
5858

59-
###### tags: `programmig-hero` `python` `float` `int` `math`
59+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Harder/Generate-Sentences.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Damn easy, isn't it?
2727

2828

2929
&nbsp;
30-
[![Next Page](assets/next-button.png)](..README.md)
30+
[![Next Page](../assets/next-button.png)](../User-Submitted/Simple-Clock.md)
3131
&nbsp;
3232

33-
###### tags: `programmig-hero` `python` `float` `int` `math`
33+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Harder/Password-generator.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For that, we ran a for loop. In the loop, we select a random letter from the all
5252

5353

5454
&nbsp;
55-
[![Next Page](assets/next-button.png)](Password-with-requirements.md)
55+
[![Next Page](../assets/next-button.png)](Password-with-requirements.md)
5656
&nbsp;
5757

58-
###### tags: `programmig-hero` `python` `float` `int` `math`
58+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Harder/Password-with-requirements.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Keep going. Only a few more left. I am sure you can do it
5555

5656

5757
&nbsp;
58-
[![Next Page](assets/next-button.png)](Permutations.md)
58+
[![Next Page](../assets/next-button.png)](Permutations.md)
5959
&nbsp;
6060

61-
###### tags: `programmig-hero` `python` `float` `int` `math`
61+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Harder/Permutations.md

+4-13
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ For example, you have 1,2,3. Now all possible order is
1616

1717
So, the permutation is a way to find all the possible order or sequence of elements.
1818

19-
Give me more: non-premium
20-
One important part of the solution is to select one element and get a list excluding that element. Let's say you want to select the list without the 4th position element.
21-
22-
All the elements before the 4th index element will be lst[:4]. This is from beginning to before the 4th element.
23-
24-
Similarly, all the elements after the fourth position will be lst[4+1:]. This is from the 4+1 or 5th element to the end.
25-
26-
This concept will help in permutation to select one element and place it in multiple places.
27-
2819
```python
2920
lst = [2,3,4,6,11,16,7,8]
3021
before = lst[:4]
@@ -81,19 +72,19 @@ Finally, we have to join the current element with the rest of the list. To do so
8172

8273
The loop variable p is a list. Whereas the current is an element. You can not add
8374

84-
3 + [2,1]
75+
`3 + [2,1]`
8576

8677
That’s why we put current in a list as well so that it becomes a list as well. In the following example,
8778

88-
[3] + [2, 1]
79+
`[3] + [2, 1]`
8980

9081
This will create [3, 2, 1]. That’s why we did [current] + p to make the final permutation.
9182

9283
This code is harder. It will take a few practices to become comfortable with it.
9384

9485

9586
&nbsp;
96-
[![Next Page](assets/next-button.png)](Generate-Sentences.md)
87+
[![Next Page](../assets/next-button.png)](Generate-Sentences.md)
9788
&nbsp;
9889

99-
###### tags: `programmig-hero` `python` `float` `int` `math`
90+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Harder/Simple-Calculator.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ That’s it.
6464

6565

6666
&nbsp;
67-
[![Next Page](assets/next-button.png)](Password-generator.md)
67+
[![Next Page](../assets/next-button.png)](Password-generator.md)
6868
&nbsp;
6969

70-
###### tags: `programmig-hero` `python` `float` `int` `math`
70+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`

Loop-Related/Largest-element-of-a-list.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ Use the max function to get the largest number in a list.
6060
[![Next Page](../assets/next-button.png)](Sum-of-squares.md)
6161
&nbsp;
6262

63-
###### tags: `programmig-hero` `python` `float` `int` `math`
63+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
6464

Loop-Related/Remove-duplicate-Chars.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ The not in is just the opposite check of in.
5353

5454

5555
&nbsp;
56-
[![Next Page](../assets/next-button.png)](../README.md)
56+
[![Next Page](../assets/next-button.png)](../Conversions/Miles-to-Kilometers.md)
5757
&nbsp;
5858

59-
###### tags: `programmig-hero` `python` `float` `int` `math`
59+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
6060

Loop-Related/Second-Largest.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ print(second_largest)
6060
```
6161
**[Try it on Programming Hero](https://play.google.com/store/apps/details?id=com.learnprogramming.codecamp)**
6262

63-
The answer is:
6463

6564
## Take Away
6665
Clever ways to solve problems will make you happier.
@@ -69,5 +68,5 @@ Clever ways to solve problems will make you happier.
6968
[![Next Page](../assets/next-button.png)](Second-smallest.md)
7069
&nbsp;
7170

72-
###### tags: `programmig-hero` `python` `float` `int` `math`
71+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
7372

Loop-Related/Second-smallest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ If you know multiple solutions to a problem, you can apply the right solution ba
6363
[![Next Page](../assets/next-button.png)](Remove-duplicate-Chars.md)
6464
&nbsp;
6565

66-
###### tags: `programmig-hero` `python` `float` `int` `math`
66+
tags: `programming-hero` `python` `python3` `problem-solving` `programming` `coding-challenge` `interview` `learn-python` `python-tutorial` `programming-exercises` `programming-challenges` `programming-fundamentals` `programming-contest` `python-coding-challenges` `python-problem-solving`
6767

0 commit comments

Comments
 (0)