[Newby-Frage] Welche Version zum Lernen
Hallo! Ich habe ein etwas älteres Büchlein geschenkt bekommen. Da gibt's als mitgelieferte CD die Version 2.2.? Jetzt habe ich etwas gegooo.. und zwei neue Versionen gefunden: 'ne 2.7er und 'ne 3er. Welche eigent sich zum Lernen (in Verbindung mit dem Buch) besser? Wohl wahrscheinlich die 2er Version?? Sorry für die wohl sehr triviale Frage und dafür *ein ganz herzliches Dankeschön* für Eure Antworten! cu Helmut
Python 2.2? Diese Version ist wie alt? 15 Jahre. Aktuell ist Python 3.5/3.6...es gibt genügend Resourcen zu aktuellen Python 3 Versionen. -aj On 23 Jul 2016, at 8:58, Helmut Wuensch wrote:
Hallo!
Ich habe ein etwas älteres Büchlein geschenkt bekommen. Da gibt's als mitgelieferte CD die Version 2.2.?
Jetzt habe ich etwas gegooo.. und zwei neue Versionen gefunden: 'ne 2.7er und 'ne 3er. Welche eigent sich zum Lernen (in Verbindung mit dem Buch) besser? Wohl wahrscheinlich die 2er Version??
Sorry für die wohl sehr triviale Frage und dafür *ein ganz herzliches Dankeschön* für Eure Antworten!
cu Helmut _______________________________________________ python-de maillist - python-de@python.org https://mail.python.org/mailman/listinfo/python-de
Hallo Helmut, Am 23.07.2016 um 08:58 schrieb Helmut Wuensch:
Jetzt habe ich etwas gegooo.. und zwei neue Versionen gefunden: 'ne 2.7er und 'ne 3er. Welche eigent sich zum Lernen (in Verbindung mit dem Buch) besser? Wohl wahrscheinlich die 2er Version?? Wenn du das Buch zum Lernen verwenden willst, würde ich bei 2.7 bleiben.
Wenn dir das Buch nicht ganz so wichtig ist, dann würde ich definitiv auf Python 3 umsatteln, da Python 2 nur noch bis 2020 gepflegt wird. Du kannst das Buch vielleicht sogar mit Python 3 erfolgreich nutzen, da viele Sachen gleich geblieben sind, aber für einen Anfänger könnten die kleinen Unterschiede auch das Zünglein an der Wage sein, das den Spaß nimmt. Viele Grüße Niko
Hi Andreas, hi Niko, zuerst 'mal *danke* für Eure Tipps! Noch'ne kleine Anschlussfrage: Wenn ich mich vorerst für 2.7. entscheide, ist es sehr kompliziert, auf 3.x 'up-zu-daten'? cu Helmut
Warum Python 2.7? Was ist der Grund für diese Frage? Python 3 ist das was du lernen willst und sonst nichts. Punkt. Streich Python 2 aus deinen Gedanken...deine Frage macht wirklich NULL Sinn - gerade wenn Du Python Neueinsteiger bist. Weitere Diskussionen sind wirklich nicht notwendig Python 3.5 Python 3.5 Python 3.5 Python 3.5 Python 3.5 Das willst Du lernen - sonst nichts! -aj Am 23. Juli 2016 um 11:50 schrieb Helmut Wuensch <no@spam.invalid>:
Hi Andreas, hi Niko,
zuerst 'mal *danke* für Eure Tipps!
Noch'ne kleine Anschlussfrage: Wenn ich mich vorerst für 2.7. entscheide, ist es sehr kompliziert, auf 3.x 'up-zu-daten'?
cu Helmut _______________________________________________ python-de maillist - python-de@python.org https://mail.python.org/mailman/listinfo/python-de
Am 23.07.2016 um 11:58 schrieb Andreas Jung:
Streich Python 2 aus deinen Gedanken...deine Frage macht wirklich NULL Sinn
Die Frage macht natürlich Sinn.
Python 3 ist das was du lernen willst und sonst nichts. Punkt.
Die Antwort sollte allerdings ähnlich lauten, mit der Einschränkung: für den Anfang. Python 2.7 wird zwar tatsächlich noch viel eingesetzt, besonders in Firmen, die z.B. noch alte Projekte haben, die z.B. auf älteren Version von Django oder anderen Webframeworks aufbauen, aber auch diese werden wohl in den nächsten Jahren verstärkt migrieren. https://pythonclock.org/ Falls es notwendig sein sollte, kannst du die Unterschiede zwischen Python 3 und 2 immer noch später lernen, um z.B. Code zu schreiben, der auf beiden Version laufähig ist: http://python-future.org/compatible_idioms.html Dies ist aber ein fortgeschrittenes Thema, das du am Anfang zwar zur Kenntnis nehmen kannst, von dem du dich aber nicht gleich vom eigentlichen Ziel - Python lernen - ablenken lassen solltest. Chris
Am 23.07.2016 um 11:58 schrieb Andreas Jung:
Warum Python 2.7? Was ist der Grund für diese Frage? Python 3 ist das was du lernen willst und sonst nichts. Punkt.
Begründungen geben Befehlen einen Sinn. Mit Sinn macht es auch mehr Spaß. Motivation ist wichtig. Gruß, Thomas -- Thomas Guettler http://www.thomas-guettler.de/
Helmut Wuensch schrieb:
Noch'ne kleine Anschlussfrage: Wenn ich mich vorerst für 2.7. entscheide, ist es sehr kompliziert, auf 3.x 'up-zu-daten'?
Für Anfänger ( und "Lernfaule") sind die Hauptunterschiede zwischen Python 2 und Python 3: Python 2: print x Python 3: print(x) also () ist erforderlich bei print in Python 3 Python 2: Zeichenketten sind ISO also z.B. len('ä') liefert 2 (wegen byte Zählung) Python 3: Zeichenketten sind utf also len('ä') liefert 1 (wegen integer Zählung) (sofern ä kein diakritisches Zeichen ist) Unter Linux habe ich gleichzeitig Python 2 ( Aufruf Python) und Python 3 (Aufruf Python3) Hermann der nach seiner Erfahrung vermutet, das man mit dem alten Lehrbauch *anfangs* unter Beachtung obiger beiden Bedingungen mit dem Python 2 Lehrbuch auch Python 3 programmieren kann. -- www.hermann-riemann.de
du meintest wohl Leerbauch, und den muss mann selbstverständlich füllen! On 23.07.2016 13:58, Hermann Riemann wrote:
Helmut Wuensch schrieb:
Noch'ne kleine Anschlussfrage: Wenn ich mich vorerst für 2.7. entscheide, ist es sehr kompliziert, auf 3.x 'up-zu-daten'? Für Anfänger ( und "Lernfaule") sind die Hauptunterschiede zwischen Python 2 und Python 3:
Python 2: print x Python 3: print(x) also () ist erforderlich bei print in Python 3
Python 2: Zeichenketten sind ISO also z.B. len('ä') liefert 2 (wegen byte Zählung)
Python 3: Zeichenketten sind utf also len('ä') liefert 1 (wegen integer Zählung) (sofern ä kein diakritisches Zeichen ist)
Unter Linux habe ich gleichzeitig Python 2 ( Aufruf Python) und Python 3 (Aufruf Python3)
Hermann der nach seiner Erfahrung vermutet, das man mit dem alten Lehrbauch *anfangs* unter Beachtung obiger beiden Bedingungen mit dem Python 2 Lehrbuch auch Python 3 programmieren kann.
On 23 Jul 2016, at 13:58, Hermann Riemann wrote:
Hermann der nach seiner Erfahrung vermutet, das man mit dem alten Lehrbauch *anfangs* unter Beachtung obiger beiden Bedingungen mit dem Python 2 Lehrbuch auch Python 3 programmieren kann.
Mit einem Buch über Python 2.2 (Release 2001(!)) lernt man kein Python. Das Buch gehört auf den Müll...hört bitte auch mit solchen unsinnigen Ratschlägen an Newbies. -aj
Hi, On Sat, 23 Jul 2016 08:58:56 +0200 Helmut Wuensch <no@spam.invalid> wrote:
Ich habe ein etwas älteres Büchlein geschenkt bekommen. Da gibt's als mitgelieferte CD die Version 2.2.? Jetzt habe ich etwas gegooo.. und zwei neue Versionen gefunden: 'ne 2.7er und 'ne 3er. Welche eigent sich zum Lernen (in Verbindung mit dem Buch) besser? Wohl wahrscheinlich die 2er Version??
Genauso wenig wie ich mit den alten Windows2000-Büchern in meinem Regal irgendetwas 'lernen' will, genauso wenig möchtest Du mit dem Python2.2-Buch etwas lernen. Schon der Unterschied zu 2.7 ist so groß, das Du bei jedem Problem schauen musst ob es Dein Fehler oder ein 2.2->2.7 Problem ist. Und der Aufwand ist zu groß und wird Dir allen Spaß an Python nehmen. Falls Du Dir kein aktuelles Buch kaufen kannst/willst, hier mein Angebot: Schreib mir Deine Adresse (als private Antwort) oder mach eine amazon-Wunschliste mit einem aktuellen Buch und schick mir den Link, dann bekommst Du von mir das Buch. Und das Python2.2-Buch stellst Du ins Regal zum Angeben oder schneidest ein Loch hinein und versteckst Deine Backupplatte darin vor neugierigen Augen. - Arnold
Nochmals ein Hallo an Alle! Und ein *ganz großes Dankeschön* an Euch!! Ich habe aus Euren Antworten VIEL gelernt! (So wie es ja auch eigentlich sein sollte! ;-) ) Lernen tue ich momentan auch C und wollte eigentlich den Interpreter nur 'mal kennen- lernen ... (Denn da gibt es viele [programmiertechnischen] Parallelen dazu ...) Es war sehr nett, dass Ihr mir auch die Unterschiede beider Ver. aufgezeigt habt. Besonders toll fand ich, das Angebot von Arnold! (Ich denke, dass ich die notwendigen Bücher auch kaufen kann. ;-) Komme aber vielleicht auf das Angebot zurück.) Eigentlich war's das schon, denn ich möchte Eure Gedult nicht überstrapazieren ... Aber habt Ihr für mich vielleicht einen *klitzekleinen* Tipp für ein (empfehlenswertes) gutes Lehrbuch oder (Uni-) Skript*) aus dem Ihr *Euer* [Anfangs-] Wissen geschöpft habt? Und nun als ganz Letztes: Nochmals danke! cu Helmut *) Verwende ich auch für C!
Hallo Helmut, On 2016-07-23 16:06, Helmut Wuensch wrote:
Eigentlich war's das schon, denn ich möchte Eure Gedult nicht überstrapazieren ... Aber habt Ihr für mich vielleicht einen *klitzekleinen* Tipp für ein (empfehlenswertes) gutes Lehrbuch oder (Uni-) Skript*) aus dem Ihr *Euer* [Anfangs-] Wissen geschöpft habt?
ich persönlich habe mit "Learning Python" von O'Reilly angefangen. Aber damals war das nur halb so dick wie jetzt und behandelte Python 1.5. ;-) Ich finde das Buch gut, weil so viele Details drinstehen. Andere finden das Buch wiederum unnötig aufgeblasen beziehungsweise zu detailliert. Viele Grüße Stefan
Am 23.07.2016 um 16:06 schrieb Helmut Wuensch:
Nochmals ein Hallo an Alle!
Und ein *ganz großes Dankeschön* an Euch!!
Ich habe aus Euren Antworten VIEL gelernt! (So wie es ja auch eigentlich sein sollte! ;-) )
Lernen tue ich momentan auch C und wollte eigentlich den Interpreter nur 'mal kennen- lernen ... (Denn da gibt es viele [programmiertechnischen] Parallelen dazu ...)
Es war sehr nett, dass Ihr mir auch die Unterschiede beider Ver. aufgezeigt habt.
Besonders toll fand ich, das Angebot von Arnold! (Ich denke, dass ich die notwendigen Bücher auch kaufen kann. ;-) Komme aber vielleicht auf das Angebot zurück.)
Eigentlich war's das schon, denn ich möchte Eure Gedult nicht überstrapazieren ... Aber habt Ihr für mich vielleicht einen *klitzekleinen* Tipp für ein (empfehlenswertes) gutes Lehrbuch oder (Uni-) Skript*) aus dem Ihr *Euer* [Anfangs-] Wissen geschöpft habt?
Hallo, ich habe damals (ich glaube im Jahr 2001) mit dem Python Tutorial angefangen. Das gibt es inzwischen auch auf deutsch: https://py-tutorial-de.readthedocs.io/de/python-3.3/ Noch ein Tipp: Lese einfach bei StackOverflow die Fragen zu Python durch. http://stackoverflow.com/questions/tagged/python Ansonsten noch ein Hinweis: "Bad programmers worry about the code. Good programmers worry about data structures and their relationships." Siehe http://programmers.stackexchange.com/questions/163185/torvalds-quote-about-g... Für mich heißt das: PostgreSQL (per Django ORM) Gruß, Thomas -- Thomas Guettler http://www.thomas-guettler.de/
participants (9)
-
Andreas Jung
-
Arnold Krille
-
Christopher Arndt
-
Helmut Wuensch
-
Hermann Riemann
-
Niko Wenselowski
-
robert rottermann
-
Stefan Schwarzer
-
Thomas Güttler