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

Python Functions & Function with Parameters

Estilo ng visual

Ipakita lahat

Mga setting ng aktibidad

Leaderboard

Magpalit ng template

Ibalik ng awtomatikong pag-save: ?