Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Python from Scratch - Lesson 3: Functions and Modules

Envato Tuts+ via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to create and use functions and modules in Python, building on previous lessons about variables and control structures. Explore function arguments, return values, and built-in functions like print(), len(), and range(). Discover how to create custom modules, import existing ones, and utilize essential Python modules such as random, math, urllib2, datetime, and os. Gain practical knowledge through examples like calculating tax and working with dates and times, while picking up useful tips for efficient Python programming.

Syllabus

Introduction
What are functions
Writing a function
Running a function
Arguments
Changing Arguments
Return Values
Printing
String
Length
Range
Creating Modules
Calculating Tax
Python Modules
Import Modules
Fromme
Add Tax
Random
Choice
Math
URL Lib 2
DateTime
Time
OS
Useful Tips
Package

Taught by

Envato Tuts+

Reviews

Start your review of Python from Scratch - Lesson 3: Functions and Modules

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.