User Tools

Site Tools


python:workout

This is an old revision of the document!


NOTES FROM PYTHON WORKOUT BOOK

SPLAT OPERATOR

Splat operator (aka *) allows a function to receive any number or arguments.

def mysum(*numbers):
    print(type(numbers))  # tuple
python/workout.1772180627.txt.gz · Last modified: by v1ctor