{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ReadNum.py - This program will read a file of random...

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

View Full Document Right Arrow Icon
# This program will read a file of random numbers and display # the numbers with a line number followed by a colon. # def main(): # Declare variables #line = '' nbrcnt = 0 # Open rnumbers.txt file for reading infile = open('rnumbers.txt', 'r') print('The "rnumbers.txt" file:')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}