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 ▸

Write a program that can convert between celcius and farenheit temperature scales


Write a function s(n) that will return a list of the first n squares.


How do you define a class in python


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