landing-frontend icon indicating copy to clipboard operation
landing-frontend copied to clipboard

Use a better example in the "Try coala" section

Open adtac opened this issue 8 years ago • 3 comments

Maybe we could use a real program from the real world. This way, we can showcase the concept of neatly returning multiple results.

adtac avatar Feb 02 '17 19:02 adtac

Maybe like this -

import sys

def Factorial( n ): # return factorial
    result = 1
    for i in range (1, n):
        result = result * i
    print ("factorial is ", result)
    return result

print ( Factorial( 10 ))

aalind0 avatar Feb 03 '17 19:02 aalind0

Is this issue still need to be solved then i would like to be assigned?

AkshJain99 avatar Dec 07 '18 15:12 AkshJain99

@li-boxuan we can have any meaningful python code to show as an example isn't it?

AkshJain99 avatar Dec 07 '18 16:12 AkshJain99