Multiple choice which command is used to create a function? for range while def Reveal answer Fill a bubble to check yourself D Correct answer Explanation The 'def' keyword is used to define a function in Python.