Python for kids · Level 1 · Unit 7: Functions: teach the computer a new word · Lesson 1
Make your own command

Make your own command

print and len are commands someone else made. With def, MAZOON makes his own command, gives it a name and calls it whenever he likes.

MAZOON Academy: coding and AI for kids