# Difference between var() commands

x,y = var('x y')

x,y = var('x, y')

What is the difference between having the comma in between variable names? As opposed to just a space separating them.

Difference between var() commands

x,y = var('x y')

x,y = var('x, y')

What is the difference between having the comma in between variable names? As opposed to just a space separating them.

add a comment

4

There is no difference in terms of what is returned -- you can use whichever you prefer. However, you have to be consistent.

3

"being consistent" means that you can't do `var('x,y z')`

Asked: **
2012-05-10 13:48:21 -0600
**

Seen: **161 times**

Last updated: **May 10 '12**

Variable overrites function defined previously

How can I clear an assignment to a variable?

Substitute variable in expression

Replace a variable with a function

question about Python assignment of lists; meaning of equals sign; how to save a list?

How to magically define variables and use functional notation instead of methods

Eliminating variables from a system of equations?

Substitution of a list of variables

variables get deleted after calulation, overflow?

How do I generate a random number according to the binomial distribution?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.