Whats is the difference between a function and a procedure?

A procedure is a named set of instructions that can be called on by throughout the program.A function is a procedure that returns a value.Both functions and procedures can take parameters.

JH

Related Python Mentoring answers

All answers ▸

What is the difference between a list and an array?


Create an rock, paper, scissors game. The user should input one option, and the computer should play randomly.


Create a program that takes in two numbers and returns the highest of the two


How would you get a piece of code to print the numbers 1 to 10