Edodovivmagarwal
Computer Science - Text-Based Programming - Python - Functions - defining and calling - Functions From Zero
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Text-Based Programming - Python - Functions - defining and calling - Functions From Zero

vivmagarwal
vivmagarwalJan 29, 2026

Description

5 steps. Step 1 'Why Functions?': Without functions: same code repeated 10 times. With functions: write once, call 10 times. DRY = Don't Repeat Yourself. Step 2 'Defining': def greet(): print('Hello!'). The def keyword, function name, parentheses, colon, indented body. Step 3 'Calling': greet() → 'H

Details

Computer ScienceText-Based Programming - PythonClass 8, Stage 8, Class 8, Grade 8, MYP Year 3

Engagement

18

Likes

0

Remixes

0

Comments