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.

Answered by James H. Python tutor

2995 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

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


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


Write a recursive function to find the factorial of a number n.


What is the difference between a float and an integer variable type?


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–2024

Terms & Conditions|Privacy Policy