W4_Strings - Announcements CSCA08H/108H Week 4 Strings...

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

View Full Document Right Arrow Icon
CSCA08H/108H Week 4 Strings, mutability 1 Announcements Reminder: A1 due Tuesday, 5:00 p.m. 2 Sharp. 2 This week more with strings loops mutability (huh?) Assignment 2 coming out soon 3 3 print and return are not the same! If the purpose of the function is to provide a value, then it must return the value The returned value is (or you could say is substituted for) the value of the function call in an expression: f_value = 86.0 c_value = c_to_f(f_value) 30.0 A function must not print (or media.show ) anything, unless that is part of its purpose 4 4
Background image of page 1

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

View Full DocumentRight Arrow Icon
Strings - breaking up Strings with double-quotes ( " " ) and single- quotes( ' ' ) Can you go into a new line? >>> "I want to break this line" Use ' ' ' . ... ' ' ' (triple single - or triple double quotes) 5 5 Strings - breaking up Strings with double-quotes ( " " ) and single- quotes( ' ' ) Can you go into a new line? >>> "I want to break this line"
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/26/2011 for the course CS a48 taught by Professor Michael during the Fall '10 term at University of Toronto.

Page1 / 4

W4_Strings - Announcements CSCA08H/108H Week 4 Strings...

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

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