Skip to content

Commit

Permalink
chore(i18n,learn): processed translations (freeCodeCamp#54532)
Browse files Browse the repository at this point in the history
  • Loading branch information
camperbot authored and pull[bot] committed Aug 8, 2024
1 parent e1cd482 commit 078f5aa
Show file tree
Hide file tree
Showing 3,342 changed files with 73,085 additions and 3,169 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ dashedName: step-13

# --description--

The first kind of cipher you are going to build is called a *Caesar* cipher. Specifically, you will take each letter in your message, find its position in the alphabet, take the letter located after 3 positions, and replace the original letter with the new letter.

Start by finding the position of the first letter in the string. One way is to call the `.find()` string method on the string you want to parse:
You are going to use the `.find()` method to find the position in the alphabet of each letter in your message. A method is similar to a function, but it belongs to an object.

```py
text.find('W')
sentence = 'My brain hurts!'
sentence.find('r')
```

Above, uppercase `'W'` is the character you want to locate inside the string stored in the `text` variable. The method will return `6`, which is the index of the `'W'` character inside the string stored in the `text` variable.
Above, the `.find()` method is *called on* `sentence` (the string to search in), and `'r'` (the character to locate) is passed as the argument. The `sentence.find('r')` call will return `4`, which is the index of the first occurrence of `'r'` in `sentence`.

At the end of your code, call `.find()` on your `alphabet` string and pass `text[0]` to the method. Note that a method is just a function that belongs to an object (you will learn more about that in another project).
At the end of your code, call `.find()` on `alphabet` and pass `'z'` as the argument to the method.

# --hints--

Expand All @@ -33,12 +32,14 @@ You should call the `.find()` method on the `alphabet` variable.
assert.match(code, /alphabet\.find\s*\(.*\)/)
```

You should call the `.find()` method on the `alphabet` variable and pass `text[0]` to the method. Pay attention to place the method call at the beginning of the line.

You should call the `.find()` method on the `alphabet` variable and pass `'z'` to the method. Pay attention to place the method call at the beginning of the line.

```js
assert.match(code, /^alphabet\.find\s*\(\s*text\s*\[\s*\s*0\s*\]\s*\)/m)
assert.match(code, /^alphabet\.find\s*\(\s*('|")z\1\s*\)/m)
```


Your code contains invalid syntax and/or invalid indentation.

```js
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655208d59b131e7816f18c96
title: Step 14
title: Step 15
challengeType: 20
dashedName: step-15
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655209a4a27dd37873c4cac3
title: Step 16
title: Step 17
challengeType: 20
dashedName: step-17
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65520e6f2b9678799977f24d
title: Step 17
title: Step 18
challengeType: 20
dashedName: step-18
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65520f8282faf57a0db4f7fe
title: Step 20
title: Step 21
challengeType: 20
dashedName: step-21
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65521203d7165c7b84b22ad4
title: Step 22
title: Step 23
challengeType: 20
dashedName: step-23
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65521fc818947e800bffe48a
title: Step 27
title: Step 28
challengeType: 20
dashedName: step-28
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655220953ba90d80514d7ee2
title: Step 28
title: Step 29
challengeType: 20
dashedName: step-29
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65522255d5b9cd80f335c6f2
title: Step 30
title: Step 31
challengeType: 20
dashedName: step-31
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6552487e689f6e895f658717
title: Step 34
title: Step 35
challengeType: 20
dashedName: step-35
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65524b3aa6a1938a069a91ab
title: Step 35
title: Step 36
challengeType: 20
dashedName: step-36
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65524b790ba8558a2f1c9fe5
title: Step 36
title: Step 37
challengeType: 20
dashedName: step-37
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65524d2a1a253b8bb5197ae2
title: Step 29
title: Step 30
challengeType: 20
dashedName: step-30
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655251308f31958d06cdf267
title: Step 37
title: Step 38
challengeType: 20
dashedName: step-38
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65525e359ca28d938baa82c5
title: Step 40
title: Step 41
challengeType: 20
dashedName: step-41
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655261b2e1f2c197093f3993
title: Step 42
title: Step 43
challengeType: 20
dashedName: step-43
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553980e0527fa115c705646
title: Step 43
title: Step 44
challengeType: 20
dashedName: step-44
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553995f412dd8122ed38e4a
title: Step 44
title: Step 45
challengeType: 20
dashedName: step-45
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553a44b1801991847d8cc69
title: Step 48
title: Step 49
challengeType: 20
dashedName: step-49
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553a572f7a65718f1e42e18
title: Step 50
title: Step 51
challengeType: 20
dashedName: step-51
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553a755879b131a445e664c
title: Step 45
title: Step 46
challengeType: 20
dashedName: step-46
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553a7d8d05cbb1ae335a665
title: Step 46
title: Step 47
challengeType: 20
dashedName: step-47
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553ed69ece88d29594748aa
title: Step 51
title: Step 52
challengeType: 20
dashedName: step-52
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553efd6ada3f42aa2d75448
title: Step 52
title: Step 53
challengeType: 20
dashedName: step-53
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553f3fc92741c2bf8ded140
title: Step 53
title: Step 54
challengeType: 20
dashedName: step-54
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553f4f66099802c6ae94613
title: Step 54
title: Step 55
challengeType: 20
dashedName: step-55
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553f6086add4b2cbb99fd78
title: Step 55
title: Step 56
challengeType: 20
dashedName: step-56
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553f6b4ec51112d44d737c8
title: Step 49
title: Step 50
challengeType: 20
dashedName: step-50
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6553f8c570f9982e013a8886
title: Step 56
title: Step 57
challengeType: 20
dashedName: step-57
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 655491bd5b98b813fa5bedca
title: Step 57
title: Step 58
challengeType: 20
dashedName: step-58
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554930320d70414e7b6acc6
title: Step 58
title: Step 59
challengeType: 20
dashedName: step-59
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65549561463f0016876e852c
title: Step 59
title: Step 60
challengeType: 20
dashedName: step-60
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 65549f90cf78131c96ebcf28
title: Step 60
title: Step 61
challengeType: 20
dashedName: step-61
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554a334a40edb1fb4eff827
title: Step 61
title: Step 62
challengeType: 20
dashedName: step-62
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554a49a4f782f208abcc87e
title: Step 62
title: Step 63
challengeType: 20
dashedName: step-63
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554a57ec0a2c52106e7ee50
title: Step 63
title: Step 64
challengeType: 20
dashedName: step-64
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554a88d5af937226f4a9121
title: Step 64
title: Step 65
challengeType: 20
dashedName: step-65
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554ac937a49be2701af4f2f
title: Step 65
title: Step 66
challengeType: 20
dashedName: step-66
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554ad2463b8892748f8efdd
title: Step 66
title: Step 67
challengeType: 20
dashedName: step-67
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554d0332949b133a0b35eaa
title: Step 67
title: Step 68
challengeType: 20
dashedName: step-68
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554d15c8acb5f34499ad789
title: Step 68
title: Step 69
challengeType: 20
dashedName: step-69
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554d25dc5ceaa354307a77e
title: Step 69
title: Step 70
challengeType: 20
dashedName: step-70
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554de295ade563a069936a1
title: Step 70
title: Step 71
challengeType: 20
dashedName: step-71
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554dfce1683be3c0c9609a6
title: Step 71
title: Step 72
challengeType: 20
dashedName: step-72
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554e0adc7bb193cbfdb36d5
title: Step 72
title: Step 73
challengeType: 20
dashedName: step-73
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: 6554e2ee23bfd93f2c83640f
title: Step 73
title: Step 74
challengeType: 20
dashedName: step-74
---
Expand Down
Loading

0 comments on commit 078f5aa

Please sign in to comment.