Free Printable Worksheets
NEW
Font size
More settings
我們本節課的主題是甚麼?
自定義函數
判斷指令
循環語句
以上皆非
自定義函數的用途主要是??
重複執行相同的動作
輸出文字
輸入整數
減少重複代碼
下列哪個是正確的函數定義語法?
function my_func(): print("Hello")
def my_func(): print("Hello")
define my_func(): print("Hello")
func my_func(): print("Hello")
左方代碼輸出結果是甚麼?
20, 20
20, 10
10, 10
10, 20
以下哪個函數定義是正確的?
def sum(a, b, c,):
return a + b + c
def sum(a b c):
def sum(a, b, c):
def sum a, b, c:
View all
10 questions
ITS Python 迴圈課堂測驗
Worksheet
•
6th Grade - University
информатика
9th - 12th Grade
Python Basics for Beginners
10th Grade
Koding dan AI
7 questions
BÀI 26_HÀM TRONG PYTHON