Skip to content
TheChatArchiveThe Chat Archive
gpt-4-0314· OpenAIAi2 WildChat-4.8M (AI2)

creer programme en python a partir du langage basic: 10 KEY OFF 20 CLS 30 PRINT "…

  1. User

    creer programme en python a partir du langage basic: 10 KEY OFF 20 CLS 30 PRINT " ######################################" 40 PRINT " # #" 50 PRINT " # Probit analysis program #" 60 PRINT " # #" 70 PRINT " ######################################" 80 PRINT " Michel Raymond, Laboratoire de G‚n‚tique" 90 PRINT " Institut des Sciences de L'Evolution" 100 PRINT " U.S.T.L. Place E. Bataillon" 110 PRINT " 34060 Montpellier Cedex" 120 PRINT " France" 130 PRINT " ----------------------------------------------" 140 PRINT "References:": PRINT : PRINT "Finney, D.J., 1971. Probit analysis, Cambridge University Press, 3rd Edition." 150 PRINT "Finney, D.J., 1949. Ann., Appl., Biol., 36, 187-195." 160 PRINT : PRINT : PRINT "Feel free to contact me for any information or advice. This program is described in a publication: RAYMOND M., 1985. Pr‚sentation d'un programme" 170 PRINT " d'analyse log-probit pour micro-ordinnateur." 180 PRINT " Cah. ORSTOM, S‚r. Ent. med et Parasitol.," 190 PRINT " vol 22(2), 117-121." 200 PRINT "(Copyright April 1993 version)"

  2. Assistant

    Here is the Python version of the given BASIC code:

    def main():
        print("                           ######################################")
        print("                           #                                    #")
        print("                           #      Probit analysis program       #")
        print("                           #                                    #")
        print("                           ######################################")
        print("                           Michel Raymond, Laboratoire de Génétique")
        print("                           Institut des Sciences de L'Evolution")
        print("                           U.S.T.L. Place E. Bataillon")
        print("                           34060 Montpellier Cedex")
        print("                           France")
        print("                       ----------------------------------------------")
        print("References:")
        print("\nFinney, D.J., 1971. Probit analysis, Cambridge University Press, 3rd Edition.")
        print("Finney, D.J., 1949. Ann., Appl., Biol., 36, 187-195.\n\n")
        print("Feel free to contact me for any information or advice. This program is described in a publication:")
        print("                                RAYMOND M., 1985. Présentation d'un programme")
        print("                                d'analyse log-probit pour micro-ordinateur.")
        print("                                Cah. ORSTOM, Sér. Ent. med et Parasitol.,")
        print("                                vol 22(2), 117-121.")
        print("(Copyright April 1993 version)")
    
    main()
    
    

    The original BASIC code has no user input or any calculations, so the Python code just replicates the text output. However, note that some accented characters have been corrected.