0

I'm new to python and spyder. Is there a way to do something like this(this is something I would do using RStudio):

(var<-c(1,2,3,4))

This would allow me assign values to my vector while seeing the output at the same time. Is there a spyder way to do this?

NelsonGon
  • 13,015
  • 7
  • 27
  • 57
  • Python assignments does not return a value: https://stackoverflow.com/questions/4869770/why-does-python-assignment-not-return-a-value – Dinari Dec 10 '18 at 13:53
  • 1
    You can combine two lines of statements using a semicolon if you really want: `var = [1,2,3,4];var` – T Burgis Dec 10 '18 at 14:00

0 Answers0