exercice_2_correction.py

Created by cahier-2de-snt2020

Created on April 28, 2020

345 Bytes

correction de l’exercice 2 p. 124 du cahier SNT Bordas.


def dms_a_decimale(degres, minutes, secondes):
    return degres + (minutes * 60 + secondes) / 3600

def decimale_a_dms(coordonnees):
    degres = coordonnees // 1
    minutes = (60 * (coordonnees - degres)) // 1
    secondes = (3600 * (coordonnees - degres) - minutes * 60) // 1
    return degres, minutes, secondes

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.