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
Answered by James H. Python tutor

6579 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

What are recursive functions and when should they be used?


Ask the user for a number and output the smallest divisor, bigger than one, for the inputted number. Output "Prime" if the number is a prime number.


What are the main data structures that I can use in Python


Print "Hello World!" ten times without typing (or pasting) the print function more than once


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences