Last active
April 9, 2019 19:27
-
-
Save OpnSrcConstruction/862232ff76ca819fa96d2e8bbed9c730 to your computer and use it in GitHub Desktop.
Python Example: Super-hero list example #python #list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
@author: OpenSourceConstruction | |
''' | |
Super_list = ['Super-man', 'Super-girl', 'Krypto'] | |
# Print the entire list. | |
print(Super_list) | |
# Print with index values 0-3. | |
print(Super_list[0]) | |
print(Super_list[1]) | |
print(Super_list[2]) | |
#Delete list element 0(1), and reprint the list. | |
del(Super_list[0]) | |
print(Super_list) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment