On Fri, Jun 17, 2011 at 7:54 AM, Jacare Omoplata
<walkeystal...@gmail.com> wrote:
> In some tutorials, when a variable is declared, it is done like,
>
> var('x')
>
> In some others, it is done like,
>
> x = var('x')
>
> What is the difference between the two, if any?

If you are writing code to include in .py files, then  x=var('x') will
work, but var('x') will totally fail.
For purely interactive use in the notebook or command line, var('x')
is fine.  But for writing programs, you should always use

    x = var('x')

 -- William

>
> Also, is it better to ask this kind of basic question in the Asksage
> forum or the sage-support mailing list?
>
> Thanks for your patience.
>
> --
> To post to this group, send email to sage-support@googlegroups.com
> To unsubscribe from this group, send email to 
> sage-support+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to