creer programme en python a partir du langage basic: 10 KEY OFF 20 CLS 30 PRINT "…
- 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 Gntique" 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. Prsentation d'un programme" 170 PRINT " d'analyse log-probit pour micro-ordinnateur." 180 PRINT " Cah. ORSTOM, Sr. Ent. med et Parasitol.," 190 PRINT " vol 22(2), 117-121." 200 PRINT "(Copyright April 1993 version)"
- 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()
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.