This teaching resource on User Defined Functions in Python includes an article, slidedeck, video, and worksheet to support comprehensive learning.
{
"article": [
{
"title": "Python User Defined Functions",
"link": "https://www.geeksforgeeks.org/python/python-user-defined-functions/",
"source": "GeeksforGeeks",
"snippet": "A User-Defined Function (UDF) is a function created by the user to perform specific tasks in a program. Unlike built-in functions provided ..."
},
{
"title": "Defining Your Own Python Function",
"link": "https://realpython.com/defining-your-own-python-function/",
"source": "Real Python",
"snippet": "These are known as user-defined functions. To define a function in Python, you use the def keyword, followed by the function name and an ..."
},
{
"title": "User-Defined Functions in Python",
"link": "https://medium.com/@faithidowu/user-defined-functions-in-python-dfe2679b95a0",
"source": "Medium · Faith Idowu",
"snippet": "These type of functions are defined by the user using the “def” keyword; user-defined functions only run when they are called."
},
{
"title": "Python user-defined functions",
"link": "https://docs.starburst.io/latest/udf/python.html",
"source": "Starburst Data",
"snippet": "A Python user-defined function is a user-defined function that uses the Python programming language and statements for the definition of the function. Note."
},
{
"title": "User-defined-functions (UDF) in Python • SOGA-Py",
"link": "https://www.geo.fu-berlin.de/en/v/soga-py/Introduction-to-Python/User-defined-functions/index.html",
"source": "Freie Universität Berlin",
"snippet": "UDFs allow you to externalise and encapsulate a logical sequence of code statements that marks a specific task repeatedly used under similar conditions."
},
{
"title": "Python 3 Notes: User Defined Functions",
"link": "https://sites.pitt.edu/~naraehan/python3/user_defined_functions.html",
"source": "University of Pittsburgh",
"snippet": "In Python, defining the function works as follows. def is the keyword for defining a function. The function name is followed by parameter(s) in (). The colon : ..."
},
{
"title": "Writing user-defined functions in Python - DeepDive",
"link": "http://deepdive.stanford.edu/writing-udf-python",
"source": "Stanford DeepDive",
"snippet": "DeepDive provides a templated way to write user-defined functions in Python. It provides several Python function decorators to simplify parsing and formatting ..."
},
{
"title": "User defined functions in Python",
"link": "https://thinkingneuron.com/user-defined-functions-in-python/",
"source": "Thinking Neuron",
"snippet": "A user-defined function is created using the “def” keyword · A user-defined function can take any number of parameters as inputs called “arguments” · A user- ..."
},
{
"title": "User-Defined Functions",
"link": "https://www.researchgate.net/publication/333373001_User-Defined_Functions",
"source": "ResearchGate",
"snippet": "A user-defined function allows you to package and name several lines of code and reuse those lines of code throughout your program."
}
],
"slidedeck": [
{
"title": "Functions",
"link": "https://www.py4e.com/lectures3/Pythonlearn-04-Functions.pptx",
"source": "PY4E - Python for Everybody",
"snippet": "There are two kinds of functions in Python. - Built-in functions that are provided as part of Python - print(), input(), type(), float(), int() ."
},
{
"title": "Unit - 1 Chapter 2 - Functions (PPT download)",
"link": "https://www.ssgopalganj.in/online/Online%20Class%20-%20PPT/Class%2012/Comp%20Sc/Chapter%202%20-%20Working%20with%20Functions%20(Revised).pptx",
"source": "Sainik School Gopalganj",
"snippet": "TYPES OF FUNCTIONS. Functions can be categorized into three types:- 1) Built in Functions. 2) Modules. 3) User - defined functions. TYPES OF FUNCTIONS. These ..."
},
{
"title": "ch07-func-and-scope.pptx",
"link": "https://www.just.edu.jo/~zasharif/Web/SE412/Slides/ch07-func-and-scope.pptx",
"source": "Jordan University of Science and Technology",
"snippet": "Introduction to Computing Using Python. Defining new functions. A few built-in functions we have seen: abs(), max(), len(),. sum(), print(). >>> abs(-9). 9. > ..."
},
{
"title": "A thorough introduction to Python",
"link": "https://help.rc.unc.edu/Assets/New_Course_Material/General_Computing/A_thorough_introduction_to_Python.pptx",
"source": "The University of North Carolina at Chapel Hill",
"snippet": "Defining Functions. Functions are defined in python using the def key word. The format of a function definition is. deffunction_name(comma, separated ..."
},
{
"title": "Lecture 2 - Names & Functions",
"link": "https://sicp.pascal-lab.net/2025/files/02-Names-and-Functions.pptx",
"source": "PASCAL Lab",
"snippet": "Calling User-Defined Functions. Procedure for calling/applying user-defined functions (for now). Create a new environment frame; Bind the ..."
},
{
"title": "Slide 1",
"link": "https://www.curriculumonline.ie/getmedia/fb8bdc35-798e-47ed-bd07-a8b1417a941f/LCCS-Programming-concept8-UNITTESTSusingFunctions.pptx",
"source": "Curriculum Online",
"snippet": "From this lesson the students will be able to: Develop functions to perform specific tasks and test each function. Import tested functions into a main program."
},
{
"title": "What is Python? PowerPoint Presentation (pptx)",
"link": "https://www.teachengineering.org/content/uom_/activity/uom-2552-what-is-python-presentation.pptx",
"source": "Teach Engineering",
"snippet": "Input functions (input()) allow users of a program to place values into programming code. The parameter for an input function is called a prompt. This is a ..."
},
{
"title": "Slide 1",
"link": "http://davcae.net.in/File/python%20prog.pptx",
"source": "DAVCAE",
"snippet": "User-Defined Functions. Invoking thefunction. >>>triangle(). *. **. * **. * * **. Computing Area of theRectangle. def areaRectangle(length, breadth):. '''."
},
{
"title": "Python Programming.pptx",
"link": "https://gcp.ac.in/downloads/OnlineResources/Computer%20Science/COMP101TH%20Problem%20Solving%20using%20Computer/Unit-3_4-1-%20Python%20Programming.pptx",
"source": "gcp.ac.in",
"snippet": "The input() method reads a line from input, converts into a string and returns it. The syntax of input() method is: input([prompt]). Input Function in Python."
},
{
"title": "Python Programming: An Introduction to Computer Science",
"link": "https://mcsp.wartburg.edu/zelle/python/ppics3/slides/Chapter05.pptx",
"source": "Wartburg College",
"snippet": "To become familiar with various operations that can be performed on strings through built-in functions and string methods. Python Programming, 3/e. <number>."
}
],
"video": [
{
"title": "Functions in Python are easy 📞",
"link": "https://www.youtube.com/watch?v=89cGQjB5R4M",
"description": "python #tutorial #course 00:00:00 functions 00:01:49 arguments 00:04:28 exercise #1 00:06:12 return 00:08:27 exercise #2 ...",
"views": "1.00M",
"channelTitle": "Bro Code",
"publishedTime": "2 years ago",
"videoLength": "10:38"
},
{
"title": "User Defined Functions - Python Tutorial #15 [Beginners]",
"link": "https://www.youtube.com/watch?v=IaZIvylvdcI",
"description": "How to make your own Functions in python? User-defined functions are quite popular in programming, as programmers build their ...",
"views": 331,
"channelTitle": "Data Action Day",
"publishedTime": "4 years ago",
"videoLength": "7:06"
},
{
"title": "Functions in Python | Python for Beginners",
"link": "https://www.youtube.com/watch?v=zvzjaqMBEso",
"description": "Take my Full Python Course Here: https://bit.ly/48O581R In this series we will be walking through everything you need to know to ...",
"views": "121.25K",
"channelTitle": "Alex The Analyst",
"publishedTime": "2 years ago",
"videoLength": "12:44"
},
{
"title": "Python Tutorial: Writing user-defined functions",
"link": "https://www.youtube.com/watch?v=d_Oa6oH1l6c",
"description": "Learn all about writing functions: https://www.datacamp.com/courses/python-data-science-toolbox-part-1 Welcome to the course!",
"views": "46.09K",
"channelTitle": "DataCamp",
"publishedTime": "9 years ago",
"videoLength": "3:57"
},
{
"title": "Python Functions: Visually Explained",
"link": "https://www.youtube.com/watch?v=KW6qncswzHw",
"description": "Resources & Further Learning - Practice notebook → https://rebrand.ly/oe61ojp - Practice exercises solutions video ...",
"views": "143.15K",
"channelTitle": "Visually Explained",
"publishedTime": "6 months ago",
"videoLength": "14:10"
},
{
"title": "Python User Defined Functions with Practical Examples",
"link": "https://www.youtube.com/watch?v=e4HZnB2Yo_8",
"description": "Python User Defined Functions with Practical Examples In this video, you will learn: Why there is a need for user-defined functions ...",
"views": "2.24K",
"channelTitle": "KnowHow Academy",
"publishedTime": "1 year ago",
"videoLength": "19:06"
},
{
"title": "Python for Beginners: 22. Ultimate Guide to User-Defined Functions",
"link": "https://www.youtube.com/watch?v=D7WVkAHwbUk",
"description": "Learn basics of functions in Python. By the end of this tutorial, you will be able to create your own user-defined functions in Python ...",
"views": 331,
"channelTitle": "TechCurate",
"publishedTime": "3 years ago",
"videoLength": "19:13"
},
{
"title": "#6 | User Defined Functions in Python Programming | Python for Beginners",
"link": "https://www.youtube.com/watch?v=sRfGaRu2zPU",
"description": "Support Simple Snippets by Donations - Google Pay UPI ID - tanmaysakpal11@okicici PayPal - paypal.me/tanmaysakpal11 ...",
"views": "37.62K",
"channelTitle": "Simple Snippets",
"publishedTime": "6 years ago",
"videoLength": "5:56"
},
{
"title": "Python Functions | Python Tutorial for Absolute Beginners #1",
"link": "https://www.youtube.com/watch?v=u-OmVr_fT4s",
"description": "Learn all about Python functions, *args, **kwargs with this Python tutorial for beginners. Complete Python course for beginners: ...",
"views": "1.17M",
"channelTitle": "Programming with Mosh",
"publishedTime": "7 years ago",
"videoLength": "30:34"
},
{
"title": "How To Use Functions In Python (Python Tutorial #3)",
"link": "https://www.youtube.com/watch?v=NSbOtYzIQI0",
"description": "This entire series in a playlist: https://goo.gl/eVauVX Keep in touch on Facebook: https://www.facebook.com/entercsdojo ...",
"views": "2.47M",
"channelTitle": "CS Dojo",
"publishedTime": "7 years ago",
"videoLength": "14:55"
},
{
"title": "#32 Python Tutorial for Beginners | Functions in Python",
"link": "https://www.youtube.com/watch?v=BVfCWuca9nw",
"description": "Functions can take input arguments, perform operations on them, and return output values. -- To define a function in Python, you ...",
"views": "1.12M",
"channelTitle": "Telusko",
"publishedTime": "7 years ago",
"videoLength": "11:13"
},
{
"title": "How to Make (Define) a Function in Python",
"link": "https://www.youtube.com/watch?v=JT4oD8NgCEI",
"description": "This video shows the basics of making and calling functions in Python and supplying functions with default arguments.",
"views": "45.56K",
"channelTitle": "DataDaft",
"publishedTime": "4 years ago",
"videoLength": "5:26"
},
{
"title": "Python Functions: Basics - how to add user defined functions to you code",
"link": "https://www.youtube.com/watch?v=RWL_ubFht3Y",
"description": "A look at how to use functions in your code to make it cleaner, shorter and easier to test or add to.",
"views": "5.38K",
"channelTitle": "John Watson Rooney",
"publishedTime": "5 years ago",
"videoLength": "7:24"
},
{
"title": "How to Run Python User Defined Functions in Snowpark",
"link": "https://www.youtube.com/watch?v=d2NgiTdhlMk",
"description": "In this episode, we'll continue in Snowpark and take a look at the User-Defined Function, or UDF. You can create these UDF in ...",
"views": "2.98K",
"channelTitle": "Sean MacKenzie Data Engineering",
"publishedTime": "3 years ago",
"videoLength": "14:49"
},
{
"title": "Python for Beginners | Ep -14 | Functions in Python | Tamil | code io",
"link": "https://www.youtube.com/watch?v=ITkKUckM6Hw",
"description": "Python for Beginners | Ep -14 | Functions in Python | Tamil | code io user defined functions in python function definition code io ...",
"views": "79.29K",
"channelTitle": "code io - Tamil",
"publishedTime": "4 years ago",
"videoLength": "13:44"
},
{
"title": "Python Functions (The Only Guide You'll Need) #12",
"link": "https://www.youtube.com/watch?v=-Bkupx9gX0o",
"description": "A function is a group of related statements that performs a specific task. Functions make our program more organized and ...",
"views": "682.54K",
"channelTitle": "Programiz",
"publishedTime": "5 years ago",
"videoLength": "16:57"
},
{
"title": "Python for Beginners | 27 Built-in Functions & User Defined Functions in Python",
"link": "https://www.youtube.com/watch?v=2uVhmXMxlLY",
"description": "Python provides many built-in functions, but you can also create your own! This video explains the difference between built-in and ...",
"views": 236,
"channelTitle": "Tech With Rathan",
"publishedTime": "8 months ago",
"videoLength": "6:07"
},
{
"title": "Functions in Python (User-Defined and Built-in) - Intro",
"link": "https://www.youtube.com/watch?v=1Wql315lYTs",
"description": "A Simple Introduction to User-Defined and Built-In functions in Python for G.C.E. Advanced Level I.C.T. Students.",
"views": "1.06K",
"channelTitle": "Teran Subasinghe (itguru.lk)",
"publishedTime": "4 years ago",
"videoLength": "10:35"
},
{
"title": "Python Functions in Telugu | Python Tutorials in Telugu | Python Telugu",
"link": "https://www.youtube.com/watch?v=En6XznyAbrg",
"description": "Click Here for Python Course in Telugu https://pythonlife.in/python-course-in-telugu.html Telegram: ...",
"views": "88.78K",
"channelTitle": "PythonLife",
"publishedTime": "2 years ago",
"videoLength": "15:44"
},
{
"title": "Python User Defined Functions - Python User Defined Function Example-Python Function Program-Python",
"link": "https://www.youtube.com/watch?v=TZNXagSdNEg",
"description": "Python user defined functions are explained with Python user defined function example and Python function call in this Python ...",
"views": "3.75K",
"channelTitle": "Software and Testing Training",
"publishedTime": "9 years ago",
"videoLength": "8:51"
}
],
"worksheet": [
{
"title": "WORKSHEET FUNCTIONS",
"link": "https://python4csip.com/files/download/SOLUTION%20FUNCTION%20WORKSHEET.pdf",
"source": "python4csip.com",
"snippet": "1. Function name must be followed by ______. Ans (). 2. ______ keyword is used to define a function. Ans def. 3. Function will perform its action only when ..."
},
{
"title": "CS303E Week 6 Worksheet: Functions",
"link": "https://www.cs.utexas.edu/~byoung/cs303e/week6-worksheet.pdf",
"source": "University of Texas at Austin",
"snippet": "A function must have at least one parameter. B. A function must contain at least one return statement. C. A function must be defined using the def keyword."
},
{
"title": "Worksheet 4",
"link": "https://www.cs.princeton.edu/~pparedes/teaching/mise/summer23/files/Worksheet_4.pdf",
"source": "Princeton University",
"snippet": "This contains all existing functions that you can use with strings and how to use them. Let's look at a couple. a. The first one is called capitalize. Read ..."
},
{
"title": "INDIAN SCHOOL AL WADI AL KABIR",
"link": "https://www.iswkoman.com/uploads/work-sheet/195288-XII_CS_Worksheet%202_FUNCTIONS%20(1)-final.pdf",
"source": "ISWK",
"snippet": "19. Write a user defined function countwords() to accept a sentence from console and display the total number of words present in that sentence."
},
{
"title": "1 More about Python function parameters and arguments",
"link": "https://www.utsc.utoronto.ca/~bretscher/a20/lectures/worksheets/10more.pdf",
"source": "University of Toronto Scarborough",
"snippet": "Let's define more precise terminology: • Parameters are the placeholders used in function definitions. • Arguments are the values you give when you call a ..."
},
{
"title": "SECTION 6: USER-DEFINED FUNCTIONS",
"link": "https://web.engr.oregonstate.edu/~webbky/ENGR103_files/Section%206%20User-Defined%20Functions.pdf",
"source": "College of Engineering | Oregon State University",
"snippet": "Keyword arguments (kwarg1=def1, …) ▫ Passed as keyword=value pairs. ▫ Order does not matter. ▫ Useful for specifying default values for optional inputs."
},
{
"title": "Session 2022-23 Class XII Computer Science (083)",
"link": "https://cdnbbsr.s3waas.gov.in/s3kv0252e06722e50b20dae5701e6a57fb/uploads/2024/06/2024061769.pdf",
"source": "S3WaaS",
"snippet": "Python User Defined Functions allow users to write unique logic that the user defines. ... WORKSHEETS. L3 – Very Short Answer questions (1 ..."
},
{
"title": "python-function-questions.pdf",
"link": "https://ictswami.files.wordpress.com/2022/10/python-function-questions.pdf",
"source": "WordPress.com",
"snippet": "What is the difference between local and global variables? 12. When is global statement used ? Why is its use not recommended ? 13. Write the term suitable for ..."
},
{
"title": "PROBLEM SOLVING AND PYTHON PROGRAMMING",
"link": "https://dscet.ac.in/questionbank/science/first-sem/GE8151-PYTHON.pdf",
"source": "Dhanalakshmi Srinivasan College of Engineering and Technology (DSCET)",
"snippet": "b) User- Defined: Functions that are created according to the requirements. 20. Mention the types of arguments in python. 1.python default arguments. 2.python ..."
},
{
"title": "Python Revision Tour of Class XI",
"link": "https://sanmatischool.org/assets/download/Graded%20Worksheet%20CS%20XII%20(1).pdf",
"source": "Sanmati Higher Secondary School, Indore",
"snippet": "Write the following user defined functions in Python and perform the specified operations on a stack named BigNums. (1)PushBig(): It checks every number ..."
}
]
}Get started to brew teaching materials effortlessly with Edcafe AI.
Sign up now