# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + [markdown] id="view-in-github" colab_type="text"
# <a href="https://colab.research.google.com/github/humbertoguell/daa2020_1/blob/master/2dediciembre.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + id="cKTU3WzV_x96"
def  fcRecInfinita():
     print("hola")
     fnRecIntfinita()


# + id="0PTfnVEFAUdK"
fcRecInfinita()


# + colab={"base_uri": "https://localhost:8080/"} id="INvW9buRAXOv" outputId="b84cc6ba-3027-44ba-8634-718222b45d94"
def fnRec( x ):
    if x== 0:
      print('Stop')
    else:
      print( x )
      fnRec( x-1 )

def main():
    print('inicio del programa')
    fnRec(5)
    print('fin del programa')

main()


# + colab={"base_uri": "https://localhost:8080/"} id="3CRig-KPBztZ" outputId="6fb845a9-c9a6-4e8a-b8c9-b5eeef4ac04e"
def printRev( x ):
    if x > 0:
        print( x )
        printRev( x-1 )
print( 3 )


# + colab={"base_uri": "https://localhost:8080/"} id="iHY8t8CMIy1X" outputId="720e3a6b-3a81-487a-fb04-a861237ddb33"
def fibonacci( n ):
    if n == 1 or n == 0:
      return n
    else:
      return(fibonacci(n-1) +fibonacci(n-2) )
print(fibonacci(8))

StarcoderdataJupyterScriptsDedupFiltered