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

Upload New File

parent 40e82667
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:2bb00e31 tags:
# Make and Append List
%% Cell type:code id:08a543df 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