Question
This code block is an example of _____ programming.def greeting(): print("Welcome to my website!")(1 point)Responsesobject-orientedobject-orientedproceduralproceduralevent-drivenevent-drivenstack planned
Answers
GPT-4o mini
This code block is an example of **procedural** programming.
Procedural programming focuses on writing procedures or functions that operate on data. The provided code defines a function `greeting()` that, when called, will execute the print statement.
Procedural programming focuses on writing procedures or functions that operate on data. The provided code defines a function `greeting()` that, when called, will execute the print statement.