Question
This code block is an example of _____ programming.
def greeting():
print("Welcome to my website!")
(1 point)
Responses

object-oriented
object-oriented

procedural
procedural

event-driven
event-driven

stack planned
def greeting():
print("Welcome to my website!")
(1 point)
Responses

object-oriented
object-oriented

procedural
procedural

event-driven
event-driven

stack planned
Answers
GPT-4o mini
This code block is an example of **procedural** programming.
Procedural programming involves writing procedures or functions that operate on data, and the given code defines a function `greeting()` that prints a message.
Procedural programming involves writing procedures or functions that operate on data, and the given code defines a function `greeting()` that prints a message.