Python‎ > ‎Python Mini Projects‎ > ‎Study Guides‎ > ‎

04 Fractions Study Guide

Study Guide

Sample code for the Fractions project is attached below.

C-Level Questions will require you to understand
  1. Indexing into strings. For example, if L = 'elephant' , what does L[2] return?
  2. Using for-loops and while-loops to access string elements
  3. if s is a string, using s.find(), s.count(), s.split(),
  4. string slicing, e.g. if s = 'elephant', what does s[2:4] do?
C-level questions only require you to understand simple code fragments and write their output. You do not need to write any code for the C-level questions.

B- and A-Level Questions will require you understand 
  1. C-Level content
  2. Error handling i.e. try-except clauses
  3. len() command used with lists, e.g., if s = 'elephant' you should know what  len(s) returns
B- and A-level questions require you to not only understand code fragments and write their output, but also may ask you to write short code fragments from scratch that meet the question's requirements.

The coding test will require you to understand B and A-level content.

The Python Tutorials page is a great place to start for your studying.  There's also the unofficial textbook, How to Think Like a Computer Scientist.