blackbeer Rare Posted January 2 Posted January 2 [/img] 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: This is the hidden content, please Sign In or Sign Up <-- Link to further readings goes here Here 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. This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up [/center] 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now