Python Functions and Modules: Code You Can Reuse
Stop copying the same twelve lines into every script. Write functions that do one thing, split them into files you can import, and set up a virtual environment so one project's packages never break another's.
Python
5 lessons
Plus plan
From $4/month, unlocks this and the rest of the library
Start free preview
Create free account
Already a member? Sign in
- This course AND every other Plus course
- Playground Pro, private projects, Monaco editor
- Certificates on every course you finish
- Cancel any time. Access runs to the end of the period
- Pay in your currency, card or M-Pesa
- 1 lesson free to preview now
Step 3 of 6 on Python Developer
Next after this: Python for Automating the Boring Work
See the path
Course Curriculum
5 lessons Β· 1 free preview Β· ~1.3h total
2
Arguments: Positional, Named, and Too Many
3
Splitting Into Modules
4
Virtual Environments and pip
5
Putting It Together: A Small Reusable Toolkit
Student Reviews
No reviews yet. Be the first after completing!
Course Includes
- 5 structured lessons
- Live coding playground
- Hints when you're stuck
- Automatic code checking
- Completion certificate
- Included with Plus
- Mobile friendly