rec3_Jan26 - Workshop 3 January 26, 2012 Summary of...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Workshop 3 January 26, 2012
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Summary of Workshop - Review of conditionals - Ranges/lists - For Loop Intro - For Loop Practice Problems - Conditionals + For Loops  - Pictures! simple picture problem
Background image of page 2
Notes for students -Piazza check-up -We have established many resources (office hours, workshop, piazza) for help.  Please take advantage of them. If one of these channels does not seem  appropriate, you may email your TA. -Mini Project 1 (MP1) was due January 25th (Wed) at 8pm -Jan 27: First QUIZ tomorrow!! - hw01 is released and due next Friday   
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Review: Conditionals - if         - Tells JES to check IF condition is true, then perform            commands underneath  it.         - JES will run through EVERY if statement  - elif   ("else if. ..")         - otherwise, if the statement under elif is true,                     perform the commands  underneath it.         - if the condition is met underneath the "elif", JES will         be done (mutually  exclusive) - else:         - the "catch-all" for JES.         - this is a statement that will perform the commands underneath it no matter what
Background image of page 4
Conditional practice Function Name : dataType() Parameters : x - a variable representing one of 4 data types. Return : a string representing the data type Description : Write a function that takes in a parameter that is 1 of the 4 data types, asks  which data type it is, and returns it as a string. E.g.- if you entered 3 as a parameter,  "integer" should be returned. Hint: use the function type() to determine what the data type  is. Test Cases
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/06/2012 for the course COMPUTERSC 1315 taught by Professor Potts during the Spring '11 term at Harvard.

Page1 / 17

rec3_Jan26 - Workshop 3 January 26, 2012 Summary of...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online