# ---
# 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/DanielBsilvaM/rev-PY/blob/main/exercicioPY5.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

# + colab={"base_uri": "https://localhost:8080/"} id="F-ynZ8-x8QOu" outputId="fe7318cd-0fe8-4651-f784-bbd3dd5cb3b9"
#1
#Função Principal
def f_fahrenheit(F):
  C = (F-32) * 5/9
  return C

#Teste Função
f_fahrenheit(255)


# + id="Kuh8Z7dZ8jlP"
#2
def hipotenusa(a, b):
  h = ((a**2) + (b**2)) ** 0.5
  return h

#Teste Função
hipotenusa(52, 44)



# + id="a5WAaY1U8vxL"
#3
def aprovacao(nota_1, nota_2):
  if (nota_1 + nota_2) / 2 >= 6:
    print("PARABÉNS! VOCÊ FOI APROVADO")
  else:
    print("ESTUDE MAIS!!")

#Teste Função
aprovacao(7, 5)

# + id="G96imoZp8yw7"


# + id="it3fYxzB-4fB"
#9
def divisivel(x, y):
  if (x % y == 0):
    return 1
  else:
    return 0

#Teste Função
divisivel(10, 10)


# + id="ReDeUvLa--Jt"
#10
def maior_que(a, b):
  if a > b:
    return a
  else:
    return b

#Teste Função
maior_que(2, 3)
#maior_que(7, 4)

# + id="EspwtrVd-_BS"
#11
def pol_cm(pol):
  cm = pol * 2.54
  return cm

#Teste Função
pol_cm(55)

StarcoderdataJupyterScriptsDedupFiltered