Which keyword is used to define a function in Python?, def, define, str, func, In the code below, what is 'name' and what is "Ava"?, 'name' is an argument; "Ava" is a parameter, Both are parameters, Both are arguments, 'name' is a parameter; "Ava" is an argument, What does this code print?, 10, 15, 5, error, What is a callback function?, A function that is defined inside a loop, A function that returns None, A function that calls itself repeatedly for a fixed number of times., A function that is passed as an argument to another function, to be called later, What does this code print?, An error, because square is passed without parentheses, 8, <function square at 0x...>, 16, What does this code print?, TypeError, 8, 13, 12, What does this code print?, Nothing, because the function is never called, Go team! (one time), An error, Go team! (two times), What does this code print?, An error, because the arguments are out of order, 12 is Mia, Mia is 12, An error, because keyword arguments aren't allowed, What does this code print?, HELLO!, hello, hello..., An error, What happens when this code runs?, Hello is printed twice, Hello is printed once, then a TypeError occurs, A TypeError occurs and nothing is printed, Hello is printed once and there is no error
0%
Python Functions & Function with Parameters
共享
共享
由
Emckelvey2
编辑内容
保存
喜欢
打印
嵌入
更多
需要登录
视觉风格
显示所有
字体
活动设置
排行榜
作业
需要订阅
活动设置
排行榜
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
显示更多
显示更少
问答游戏
是一个开放式模板。它不会为排行榜生成分数。
作业
您尚未与学生分享任何活动。
要开始收集结果,请转到任何活动页面,然后选择
Set assignment(设置分配
)。
确认您的设置并与学生共享生成的链接。
设置作业
切换模板
显示所有
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?