CoCalc Public Filesr.sagewsOpen with one click!
Author: Harald Schilly
Views : 95
Compute Environment: Ubuntu 18.04 (Deprecated)
%python x = raw_input("What?")
What?
Error in lines 1-1 Traceback (most recent call last): File "/projects/20e4a191-73ea-4921-80e9-0a5d792fc511/.sagemathcloud/sage_server.py", line 873, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> EOFError: EOF when reading a line
%auto %default_mode r
%sh cat r.data
1. 1. 2. 3. 5. 8. 13.
x <- scan("r.data") x
  1. 1
  2. 1
  3. 2
  4. 3
  5. 5
  6. 8
  7. 13
summary(x)
Min. 1st Qu. Median Mean 3rd Qu. Max. 1.000 1.500 3.000 4.714 6.500 13.000
plot(x)
Sys.time()
"2016-10-21 14:31:14 UTC"
Sys.which("ls")
ls: ''
c(1,2,3)
  1. 1
  2. 2
  3. 3
print()
chr "asdf"
print("test")
[1] "test"
foo <- list(a=1,b=2,c=3) foo
$a
1
$b
2
$c
3
typeof(foo)
'list'