Skip to content
Snippets Groups Projects
Commit 40e82667 authored by cprutean's avatar cprutean
Browse files

Upload New File

parent a231348c
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:f4a0d181 tags:
# Make and Append List
%% Cell type:code id:0b78a654 tags:
``` python
"""
Make a simple list, and append to it
"""
def main():
myList = [0,1,4,9,16,25,36]
print("The initial list is : " + str(myList))
l = len(myList)
print("Length of list is " + str(l))
myList.append(49)
print("The list after appending an element is : " + str(myList))
main()
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment