rec3_Jan26 - Workshop 3 Summary of Workshop Review of...

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

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

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

View Full Document Right Arrow Icon
Summary of Workshop - Review of conditionals - Ranges/lists - For Loop Intro - For Loop Practice Problems - Conditionals + For Loops  - Pictures! simple picture problem
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   
Image of page 3

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

View Full Document Right 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
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.
Image of page 5

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern