In your setup everything worked ok. You just defined a function called hello. The function was never executed so you didn't see anything. To execute the function try the following:
hello() Considdering you are new with sage I suggest first learn how to use python (and don't use the %cython). Only after you are familiar with that it might be good to start learning cython. And then would only need it if you wrote some code that calls some fast functions in a smal for loop that is annoyingly slow. Le dimanche 1 avril 2012 07:57:40 UTC+2, Priyanka a écrit : > > When I run code : > %cython > cdef hello(): > print 'hello world!' > I got two files , one is html file and another is C file. > Html contents are: > 1: > > 2: include "interrupt.pxi" # ctrl-c interrupt block support > > 3: include "stdsage.pxi" # ctrl-c interrupt block support > > 4: > > 5: include "cdefs.pxi" > > 6: cdef hello(): > > 7: print 'hello world!' > > I am new to sage. I dont know much about it. Can you clarify now? > Whats the problem in actual? > I also wish to know what is the problem and how the desired output > hello world will come. > > > -- > Priyanka Kapoor > http://kapoorpriyanka.in > Linux User Group, Ludhiana > > -- 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