Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Command-Line Exercises

  1. Create Programs. Refer back to exercises in Part I, “Language Basics”. See sections the section called “Numeric Types and Expressions”, the section called “Condition Exercises”, the section called “Iteration Exercises”, the section called “Function Exercises”. Modify these scripts to be stand-alone programs. In particular, they should get their input via getopt from the command line instead of raw_input or other mechanism.

  2. Larger Programs. Refer back to exercises in Part II, “Data Structures”. See sections the section called “String Exercises”, the section called “Tuple Exercises”, the section called “List Exercises”, the section called “Dictionary Exercises”, the section called “Exception Exercises”. Modify these scripts to be stand-alone programs. In many cases, these programs will need input from files. The file names should be taken from the command line using getopt.

  3. Object-Oriented Programs. Refer back to exercises in the section called “Class Definition Exercises”, the section called “Advanced Class Definition Exercises”. Modify these scripts to be stand-alone programs.


 
 
  Published under the terms of the Open Publication License Design by Interspire