Introduction to Python Functions for beginners
4.3 (15 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,490 students enrolled

Introduction to Python Functions for beginners

Learn how to create functions step by step
4.3 (15 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,490 students enrolled
Last updated 7/2019
English
English [Auto]
Current price: $13.99 Original price: $19.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to create functions
  • How to use return keyword in functions
  • How to use default parameter value
  • How to use keyword arguments
  • How to create functions returning other functions
  • How to nest functions
  • How to pass functions as arguments
  • How to create anonymous functions
Course content
Expand all 23 lectures 02:06:56
+ Installing Python and Pycharm
10 lectures 55:22
Installing Python on Macs
06:57
Installing Pycharm on Macs
03:30
Changing theme in Pycharm
02:37
Pycharm Configuration on Macs
11:17
Pycharm configuration on Windows - Part 1
07:18
Pycharm configuration on Windows - Part 2
08:04
+ Introduction to Python Functions
13 lectures 01:11:34
What are Functions
08:35
Function Return Keyword
02:44
Using Default Parameter Value
05:58
Using Keyword Arguments
06:05
Functions returning other functions
03:00
Assigning Functions to Variables
05:09
Global and Local Variable Scopes
07:52
Nesting Functions
05:33
Nesting Functions Accessing Variable Scopes
05:02
Function Pass Keyword
01:09
Passing Functions as Arguments
05:46
Using Varargs parameter
07:21
Anonymous Functions
07:20
Requirements
  • Basic understanding of using a computer
  • Basic understanding of using the internet
Description

Functions are an essential part of the Python programming language.

A function is a block of code which only runs when it is called.

You can pass data, known as parameters, into a function and a function can return data as a result.


Functions are a convenient way to divide your  code into useful blocks, allowing us to order

our code, make it more readable, reuse it and save some time.

Also functions are a key way to define interfaces so programmers can share their code.

Functions provide better modularity for your  application and a high degree of code reusing.


You  can use functions in programming to bundle a set  of instructions that you want to use repeatedly or that,

because of their complexity, are better  self-contained in a sub-program and called when needed.

That means that a function is a piece of code written to carry out a specified task.

To carry out that specific task, the function might or might not need multiple inputs.

When the task is carried out, the function  can or can not return one or more values.


There are three types of functions in Python:

  • Built-in functions, such as help() to ask for help, min()  to get the minimum value, print() to print an object to the terminal.

  • User-Defined Functions (UDFs), which are functions that users create to help them out

  • Anonymous functions, which are also called lambda functions  because they are not declared with the standard def keyword.





Who this course is for:
  • Beginners to Python
  • Beginners to Programming
  • Beginners to web development