Code Structure
While Python is very flexible in terms of program and code structure, there are common practices related to structure or format of statements that should be followed, no matter the source language. Boolean LiteralsTypecastingSplitting a StringOpening a FileDo not combine an input function as the argument to the inFile = open(input("Enter a filename: ")) Instead, this should be split into two separate instructions filename = input("Enter a filename: ") inFile = open(filename) Storage Classes
|