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

6997 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Which four data types are used in Python? Can you give an example of each?


Write a simple number guessing game, give the user 3 tries to guess a number between 1 and 10


Give a segment of python code that will print the numbers 1 to 7, each one on a new line


How do I use format python code?


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences