PYTHON CODING - LEARN WITH ME!
PYTHON CODING - LEARN WITH ME!
PYTHON CODING - LEARN WITH ME!
Playground and Cheatsheet for Learning Python
UKRAINE IS BEING ATTACKED BY RUSSIAN ARMY. CIVILIANS ARE GETTING KILLED. RESIDENTIAL AREAS ARE GETTING BOMBED.
src
no **keywords dictionary parameters (#62)
3 years ago
.flake8
Make Flake8 to be a dependency.
7 years ago
.gitignore
Add Python scripts.
7 years ago
.travis.yml
Make Flake8 to be a dependency.
7 years ago
CODE_OF_CONDUCT.md
Change verb form (#42)
4 years ago
LICENSE
Create LICENSE
7 years ago
README.es-ES.md
README fixes.
4 years ago
README.md
Update README.md
2 years ago
README.pt-BR.md
README fixes.
4 years ago
README.zh-TW.md
README fixes.
4 years ago
_config.yml
Set theme jekyll-theme-minimal
6 years ago
pylintrc
Add Python scripts.
7 years ago
requirements.txt
Make Flake8 to be a dependency.
7 years ago
Repository files navigation
README
Code of conduct
MIT license
"""Lists <--- Name of the topic here
# @see:
You need to reply to see the links
<-- Link to further readings goes hereHere might go more detailed explanation of the current topic (i.e. general info about Lists).
"""
def test_list_type():
"""Explanation of sub-topic goes here.
Each file contains test functions that illustrate sub-topics (i.e. lists type, lists methods).
"""
# Here is an example of how to build a list. <-- Comments here explain the action
squares = [1, 4, 9, 16, 25]
# Lists can be indexed and sliced.
# Indexing returns the item.
assert squares[0] == 1 # <-- Assertions here illustrate the result.
# Slicing returns a new list.
assert squares[-3:] == [9, 16, 25] # <-- Assertions here illustrate the result.
You need to reply to see the links
You need to reply to see the links
You need to reply to see the links
You need to reply to see the links
[/center]
