Store the grades in a list as they are entered start

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ueberry •  Write a for command that prints the fruits with 5 leSers –  Answer: apple, guava, grape Prac@ce exercises •  Write a Python program that allows the user to enter as many grades as wished. •  Store the grades in a list, as they are entered: –  Start with an empty list –  Use the append() method to add new grades to the list as they are entered •  Find the average grade in the list •  Print those grades below average List Variables •  Variables are names or labels a programmer can use to refer to a value in Python •  For some types of variables (like lists), Python remembers the memory address (or reference) where it put the value in the computer’s memory •  Addresses start with “0x” and are...
View Full Document

This document was uploaded on 03/02/2014.

Ask a homework question - tutors are online