From 798a6a13670dac095b9d8ecfe5fe312a0b76b0d1 Mon Sep 17 00:00:00 2001 From: pelibby16 <pelibby16@earlham.edu> Date: Thu, 14 Nov 2024 12:42:28 -0500 Subject: [PATCH] python additions --- topical-units/env-python/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/topical-units/env-python/README.md b/topical-units/env-python/README.md index 1104e7e..b00344d 100644 --- a/topical-units/env-python/README.md +++ b/topical-units/env-python/README.md @@ -3,6 +3,8 @@ Python is a widely-used, interpreted, object-oriented, high level programming language. It is very popular, particularly among domain scientists such as biologists. This language unit is designed for people that have not taken CS128 at Earlham. If you are in a major other than CS, or have previous programming experience in a language other than Python, this module might be perfect for you. +This course emphasizes learn-by-doing, so to learn Python you will write programs in Python. The way to learn a programming language is to read and write code in that language. + ## Resources (and additional READMEs) - [Using Jupyterhub README](JUPYTER.md) - [Python Basics README](BASICS.md) @@ -16,9 +18,10 @@ Python is a widely-used, interpreted, object-oriented, high level programming la ## Deliverables - Write a helloWorld script in python. It should contain a single function called `helloWorld()` that prints the string "Hello World!". - - - +- Write a script in python +- Read a file containing an arbitrary number of integers, one per line. Display the count, total, and average on stderr at the end of the run. Make the program capable of displaying the maximum values of each quantity without resorting to arbitrary precision arithmetic (hint, unsigned long int). + - Use a function/method as part of your program, e.g. to write the aggregated values to stdout. + - Use command line parameters available via argv and argc to support -i input-file-name to pass the input file to your program. ## Notes / Ideas -- GitLab