Name

, (comma)

Examples
# Comma used to separate like in various cases:

# 1. a list of variable declarations
a, b, c = 20, 30, 80

# 2.a list of values
d = [20, 60, 80]

# 3.a list of parameters passed to a function
line(a, b, c, b)
line(d[0], d[1], d[2], d[1])
Description Separates parameters in function calls and elements during assignment.
Syntax
value1, ..., valueN
Parameters
value1, ..., valueNany int, float, byte, boolean, color, char, String
Updated on Tue Jul 11 06:52:23 2017.
Creative Commons License