Skip to content

professorMayhem/introPython

Repository files navigation

Introductory Python Scripts

Short Python examples for my introductory programming classes at Montana Tech.

multipleTask.py illustrates how to format and document a script that has multiple parts. It should be user-friendly and programmer-friendly.

randIntList.py is used for the Module 3 Quiz. It creates an empty list and appends random integers to it.

userrepeat.py is an example of a loop that asks the user if they want to continue

intinput.py has an example of exception handling for integer input

filewrite.py is a simple example of writing to a file.

names.txt and words_alpha.txt are sample text files for file input programs

longestsequence.py finds the longest sequence of a given value in a list

formatted.py uses the split() method, a little formatted printing

nestedfor.py has an example of nested for loops

scope.py shows some examples of global and local scope

About

Short Python examples for my introductory programming classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages