What does "In [1]" mean in the console?

23 views
Skip to first unread message

Red Rhythm

unread,
Jun 12, 2020, 5:57:04 PM6/12/20
to spyder
Hi, new to Spyder and programming in general.

I was just wondering whenever I run my program, 

In [1]

In [2]

etc

keeps appearing in green as the first line of text.  

What does it mean?  

Does it just mean first/second/third initiation or something or is it more important than I realize? 


Bibeesh Y S

unread,
Jun 13, 2020, 1:12:58 PM6/13/20
to spyd...@googlegroups.com
Hi

It is your script output window ( called "console"), 
In the same window you can write a simple code to check.

Try the below code in script editor (right window)

a=2
b=5
Print(a+b)

You will see the result 7 in console

Try the below in console
2+5 (then enter)



Regards
Bibeesh

--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/6c4901ac-57f9-46dc-a032-24fdb6fdc460o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages