Skip to content

Instantly share code, notes, and snippets.

@Tamoghna-Saha
Created November 6, 2018 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tamoghna-Saha/49a08b555b9b551feb7eed679b8c44d2 to your computer and use it in GitHub Desktop.
Save Tamoghna-Saha/49a08b555b9b551feb7eed679b8c44d2 to your computer and use it in GitHub Desktop.
Function_VS_Method.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {},
"cell_type": "markdown",
"source": "| Method | Function |\n|:---:|:---:|\n| Method is a block of code that is called by its name, but is associated to an object (dependent) | Function is a piece of code that is called by its name but independent |\n| Method is implicitly passed for the object for which it was called | Functions can have parameters, so arguments can be passed to those parameters but explicitly |"
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"name": "python",
"version": "3.6.6",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "",
"data": {
"description": "Function_VS_Method.ipynb",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment