Udemy

Introduction to Python Functions for beginners

立即報名
  • 3,520 名學生
  • 更新於 8/2022
  • 可獲發證書
4.3
(24 個評分)
  • 提示:
  • 透過本站連結購買Udemy課程,本站將獲得推廣佣金,有助未來提供更多實用進修課程資訊給讀者。

課程資料

報名日期*
全年招生
課程級別
學習模式
修業期
2 小時 14 分鐘
教學語言
英語
授課導師
Bluelime Learning Solutions
證書
  • 可獲發
  • (證書的發放與分配,依課程提供者的政策及安排而定。)
評分
4.3
(24 個評分)
課程連結
*提示: 以上時間表僅供參考,以機構網站為準。

課程簡介

Introduction to Python Functions for beginners

Learn how to create functions step by step

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.





課程章節

  • 2 個章節
  • 25 堂課
  • 第 1 章 Installing Python and Pycharm
  • 第 2 章 Introduction to Python Functions

課程內容

  • 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


評價

  • D
    Daniel Neves
    3.0

    Could have more examples

  • B
    Barbara Gladfelter
    3.0

    It does help me with functions. The course is kind of short and I think could stand more examples. I would suggest some practice quizzes and supplemental practice examples. It's not clear why PyCharm needs to be installed as you can do the problems without that.

  • A
    Armando Ochoa Ramon
    5.0

    Excelent, he explain very well. Thanks.

  • N
    Nishant Patel
    4.0

    excellent experience

立即關注瀏覽更多

本網站使用Cookies來改善您的瀏覽體驗,請確定您同意及接受我們的私隱政策與使用條款才繼續瀏覽。

我已閱讀及同意