# ---
# 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/Oziel-Rojas5/daa_2021_1/blob/master/Tarea_4.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + id="pBbHjHSNfCqy" outputId="258b3500-6a67-416f-f7be-544517944c2a" colab={"base_uri": "https://localhost:8080/", "height": 145}
def ejemplo4( n ):
  count = 0
  i = n
  print("nivel 1")
  while i>=1:
    count += 1
    i = i // 2
    print("nive 2")
  basura = 2 + 3
  return count

if __name__ == "__main__":
  print(f"Contador igual a: {ejemplo4(20)}")

StarcoderdataJupyterScriptsDedupFiltered