Intendierte Lernergebnisse
Teaching objectives:Understand concepts of structured and object-based programmingBe able to implement simple algorithms and data structures in PythonWrite simple object-oriented programs in PythonBe able to develop programs in simple IDEsUnderstand the basics of how to write good code in Python language.
Lehrmethodik
Discussion of practical programming exercises, live programming, and homework.
Inhalt/e
Part 1General introduction and basics of programmingIntroduction to Python (String, Int, Float)Input and printOperations and Logical StatementsCode BlockCommentsLoops (For and While)Part 2Arrays, Matrix, Dictionaries. set, and EnumerationSort, Insert, Pop, and Append.Subroutines (Functions) with and without type declarationList Comprehension and Dict ComprehensionRecursionPackagesPart 3Classes, methods, subclasses, and InheritanceInformation hiding principle (Public, Protected, and Private)Exception handlingFiles (Input and Output)Writing good code
Literatur
Parker, James R.: Python. An Introduction to Programming. Dulles, VA : Mercury Learning and Information, 2021. https://www.degruyter.com/document/doi/10.1515/9781683926238/html