Travis build: 29
This commit is contained in:
76
README.md
76
README.md
@ -1,24 +1,24 @@
|
||||

|
||||
|
||||
## 30-seconds-of-python
|
||||
|
||||
> Curated collection of useful Python snippets that you can understand in 30 seconds or less.
|
||||
|
||||
* Use <kbd>Ctrl</kbd> + <kbd>F</kbd> or <kbd>command</kbd> + <kbd>F</kbd> to search for a snippet.
|
||||
* Contributions welcome, please read the [contribution guide](CONTRIBUTING.md).
|
||||
* If you want to follow 30-seconds-of-code on social media, you can find us on [Facebook](https://www.facebook.com/30secondsofcode), [Instagram](https://www.instagram.com/30secondsofcode) and [Twitter](https://twitter.com/30secondsofcode).
|
||||
|
||||
#### Related projects
|
||||
|
||||
* [30 Seconds of code](https://github.com/30-seconds/30-seconds-of-code)
|
||||
* [30 Seconds of CSS](https://30-seconds.github.io/30-seconds-of-css/)
|
||||
* [30 Seconds of Interviews](https://30secondsofinterviews.org/)
|
||||
* [30 Seconds of React](https://github.com/30-seconds/30-seconds-of-react)
|
||||
* [30 Seconds of PHP](https://github.com/30-seconds/30-seconds-of-php-code)
|
||||
* [30 Seconds of Knowledge](https://chrome.google.com/webstore/detail/30-seconds-of-knowledge/mmgplondnjekobonklacmemikcnhklla)
|
||||
* [30 Seconds of Kotlin](https://github.com/IvanMwiruki/30-seconds-of-kotlin) _(unofficial)_
|
||||
|
||||
## Contents
|
||||

|
||||
|
||||
## 30-seconds-of-python
|
||||
|
||||
> Curated collection of useful Python snippets that you can understand in 30 seconds or less.
|
||||
|
||||
* Use <kbd>Ctrl</kbd> + <kbd>F</kbd> or <kbd>command</kbd> + <kbd>F</kbd> to search for a snippet.
|
||||
* Contributions welcome, please read the [contribution guide](CONTRIBUTING.md).
|
||||
* If you want to follow 30-seconds-of-code on social media, you can find us on [Facebook](https://www.facebook.com/30secondsofcode), [Instagram](https://www.instagram.com/30secondsofcode) and [Twitter](https://twitter.com/30secondsofcode).
|
||||
|
||||
#### Related projects
|
||||
|
||||
* [30 Seconds of code](https://github.com/30-seconds/30-seconds-of-code)
|
||||
* [30 Seconds of CSS](https://30-seconds.github.io/30-seconds-of-css/)
|
||||
* [30 Seconds of Interviews](https://30secondsofinterviews.org/)
|
||||
* [30 Seconds of React](https://github.com/30-seconds/30-seconds-of-react)
|
||||
* [30 Seconds of PHP](https://github.com/30-seconds/30-seconds-of-php-code)
|
||||
* [30 Seconds of Knowledge](https://chrome.google.com/webstore/detail/30-seconds-of-knowledge/mmgplondnjekobonklacmemikcnhklla)
|
||||
* [30 Seconds of Kotlin](https://github.com/IvanMwiruki/30-seconds-of-kotlin) _(unofficial)_
|
||||
|
||||
## Contents
|
||||
|
||||
### List
|
||||
|
||||
@ -1255,15 +1255,15 @@ Starting with `0` and `1`, use `list.apoend() to add the sum of the last two num
|
||||
If `n` is less or equal to `0`, return a list containing `0`.
|
||||
|
||||
```py
|
||||
def fibonacci(n):
|
||||
if n <= 0:
|
||||
return [0]
|
||||
|
||||
sequence = [0, 1]
|
||||
while len(sequence) <= n:
|
||||
next_value = sequence[len(sequence) - 1] + sequence[len(sequence) - 2]
|
||||
sequence.append(next_value)
|
||||
|
||||
def fibonacci(n):
|
||||
if n <= 0:
|
||||
return [0]
|
||||
|
||||
sequence = [0, 1]
|
||||
while len(sequence) <= n:
|
||||
next_value = sequence[len(sequence) - 1] + sequence[len(sequence) - 2]
|
||||
sequence.append(next_value)
|
||||
|
||||
return sequence
|
||||
```
|
||||
|
||||
@ -1938,12 +1938,12 @@ cast_list([1]); # [1]
|
||||
|
||||
<br>[⬆ Back to top](#contents)
|
||||
|
||||
## Collaborators
|
||||
|
||||
| [<img src="https://github.com/Chalarangelo.png" width="100px;"/>](https://github.com/Chalarangelo)<br/> [<sub>Angelos Chalaris</sub>](https://github.com/Chalarangelo) | [<img src="https://github.com/fejes713.png" width="100px;"/>](https://github.com/fejes713)<br/> [<sub>Stefan Feješ</sub>](https://github.com/fejes713) | [<img src="https://github.com/kriadmin.png" width="100px;"/>](https://github.com/kriadmin)<br/> [<sub>Rohit Tanwar</sub>](https://github.com/kriadmin) |
|
||||
| --- | --- | --- |
|
||||
|
||||
## Credits
|
||||
|
||||
*This README is built using [markdown-builder](https://github.com/30-seconds/markdown-builder).*
|
||||
## Collaborators
|
||||
|
||||
| [<img src="https://github.com/Chalarangelo.png" width="100px;"/>](https://github.com/Chalarangelo)<br/> [<sub>Angelos Chalaris</sub>](https://github.com/Chalarangelo) | [<img src="https://github.com/fejes713.png" width="100px;"/>](https://github.com/fejes713)<br/> [<sub>Stefan Feješ</sub>](https://github.com/fejes713) | [<img src="https://github.com/kriadmin.png" width="100px;"/>](https://github.com/kriadmin)<br/> [<sub>Rohit Tanwar</sub>](https://github.com/kriadmin) |
|
||||
| --- | --- | --- |
|
||||
|
||||
## Credits
|
||||
|
||||
*This README is built using [markdown-builder](https://github.com/30-seconds/markdown-builder).*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user