Exams are coming!
Get ready with premium notes and study guides!

Class Notes for All Professors

  • 12 Results
  • About UTSC
UTSCCSCA08H3AllWinter

CSCA08 Lecture 1: CSC108 - Week 1 Notes

OC4049794 Page
1 Mar 2016
50
Addition: eg. 2 + 3 returns 5. Subtraction: eg. 2 - 1 returns 1. Multiplication: eg. 3 * 4 returns 12. Exponentiation: eg. 2 ** 3 returns 8. Division:
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 3: CSC108 - Week 3 Notes

OC4049795 Page
1 Mar 2016
35
Visualizes calling functions in other functions and how multiple stack frames store similar variable and stuff. Again, it"s much easier to watch this v
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 2: CSC108 - Week 2 Notes

OC4049795 Page
1 Mar 2016
43
However, you"re so cold" will return a syntaxerror since the internal single quote prematurely ends the string. This can be xed by changing the contain
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 6: Week 6 + 7 Notes

OC40497912 Page
1 Mar 2016
21
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 5: CSC108 - Week 5 Notes

OC4049796 Page
1 Mar 2016
33
Comments can be left with a # symbol. Python ignores the rest of this line, allowing us to leave comments and explanations of our code without it being
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 9: Week 9 Notes

OC4049798 Page
1 Mar 2016
37
So the number is not divided by zero because python rst checks if the number is equal to zero or not. We now get another error, though because 4 is div
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 4: CSC108 - Week 4 Notes

OC4049795 Page
1 Mar 2016
30
Most python functions are saved into different modules (not available as built-in) and you have to tell python that you want to use them. You can save
View Document
UTSCCSCA08H3AllFall

CSCA08 Lecture 8: Lecture Notes for Midterm from W1 to W8

OC67736919 Page
3 Nov 2015
32
Basic types in python: type( ) < class " > print( ) str( ) String (just a special way of saying a line of text) print( 4 + 5 ) 45 print(4+ 5 ) (crash!)
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 11: Week 11 Notes

OC4049796 Page
1 Mar 2016
27
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 10: Week 10 Notes

OC4049798 Page
1 Mar 2016
27
Up until now we"ve been concentrating on creating correct functions. Print_odd_ints executes the function roughly n/2 times, printing every odd integer
View Document
UTSCCSCA08H3AllWinter

CSCA08 Lecture 8: Week 8 Notes

OC4049797 Page
1 Mar 2016
26
Csc108h1f 2014: algorithm 3: can compare pairs of characters (last and rst character, second and second. If both halves are equivalent, it is a palindr
View Document
UTSCCSCA08H3AllFall

CSCA08H3 Lecture Notes - Lecture 3: Type System, Mendelian Inheritance

OC6700239 Page
30 Oct 2015
39
Convert these integers to a binary representation: 2, 10, 21, 27, 105, 129, 360, 496, 1729. Convert these binary representations to an integer: 0, 1, 1
View Document
Showing 1 — 12 of 12 results

Class Notes (1,100,000)
CA (620,000)
UTSC (30,000)
All Professors (10)