Sort 7 Discussions, By:
Please Login in order to post a comment
What exactly does this challenge teach? What is the significance of printing "main" given arbitrary STDIN?
it means everything is an object.main is object of object class.
main is a method of the object class
What the eff? They only thing that seems remotely suggestive of what is being sought is:
Read input from STDIN. Print output to STDOUT
So I'm all like:
And then it's like "Nope, I wanted you to print 'main'". 8-|
And to find that the excercise was to literally copy the code provided I left a red welt on my forhead from the slap.
Ha ha ha !!
You'll just need to type " print self " and that's what the questionare is asking us to do :)
it solves nothing
how we get main as output as .class method only returns class of "self" object
No more comments