Although we can perform certain operations without necessarily creating a function for it.
All the listed options are correct
It is a good practice to write functions as it makes our code well structured and easy to read and comprehend by other people looking through our code base and code re-usability.
Learn more about good coding practice here:
https://brainly.com/question/14277907