, (comma)

# 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.
value1, ..., valueN
value1, ..., valueNany int, float, byte, boolean, color, char, String

Updated on Tue Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.