What is a function in Python?, A type of loop, A block of reusable code, A variable, A comment, Which keyword is used to create a function?, function, create, def, fun, Which line correctly defines a function named greet?, function greet():, def greet():, greet def():, create greet(), How do you call a function named hello?, call hello, hello[], hello(), def hello(), What will this code print?, hello, Hi!, Error, Nothing, What is the value inside the parentheses of a function definition called?, Loop, Variable, Parameter, Return, What is the value passed when calling a function called?, Parameter, Argument, Return, Variable, Which function definition has one parameter?, def game():, def game(score):, game(score), score(game), What does this code print?, Hello, Sara, Error, Hello Sara, Which statement sends a value back from a function?, return, break, input, print, What will this code display?, 43, 7, add, Error, What happens if a function has no return statement?, It cannot run., It always returns 0., It returns None., It returns an empty string., Which of the following is a function call?, def square(x):, square(), return square, x = square, Why do programmers use functions?, To make programs slower, To replace variables, To create errors, To repeat code without rewriting it, How many times can a function be called?, one, twice, three, As many times as needed
0%
Functions
Chia sẻ
Chia sẻ
bởi
Rymkemcha
Chỉnh sửa nội dung
In
Nhúng
Nhiều hơn
Tập
Bảng xếp hạng
Hiển thị thêm
Ẩn bớt
Bảng xếp hạng này hiện đang ở chế độ riêng tư. Nhấp
Chia sẻ
để công khai bảng xếp hạng này.
Chủ sở hữu tài nguyên đã vô hiệu hóa bảng xếp hạng này.
Bảng xếp hạng này bị vô hiệu hóa vì các lựa chọn của bạn khác với của chủ sở hữu tài nguyên.
Đưa các lựa chọn trở về trạng thái ban đầu
Đố vui
là một mẫu kết thúc mở. Mẫu này không tạo điểm số cho bảng xếp hạng.
Yêu cầu đăng nhập
Phong cách trực quan
Phông chữ
Yêu cầu đăng ký
Tùy chọn
Chuyển đổi mẫu
Hiển thị tất cả
Mở kết quả
Sao chép liên kết
Mã QR
Xóa
Bạn có muốn khôi phục tự động lưu:
không?