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

7663 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Write a recursive function that takes any integer n and prints the nth Fibonacci number.


How would you write a while loop to print all even numbers from 1-10?


Sort a given input of lowercase letters alphabetically


How do I define a function in Python?


We're here to help

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

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning