Pick an answer to check
RI Y2 CEP Lesson 3 Slides 2020
Uploaded by dontsueme · 10 December 2024
Preview
Text from the first pagesLesson 3Hexadecimal . Iterations . Array: list . Useful functionsRandom Number Generator . Charles Babbage
Administrative•Lesson 6: Practical Test 1•Release of CA1 (Project) – Due Lesson 13
Hexadecimal – base 16
How to convert ? ( 16 à 10 )
How to convert ? ( 2 à 16 )
Try . . .•(10101000111)2 to hexadecimal.
format()
ord() , chr() >>> ord(‘A’)>>> 65
Let’s think . . .if True or true: print(‘true!’)if true or True: print(‘true!’)What’s the difference ?
Short-Circuit (Lazy) Evaluation•For logical and, if the first operand evaluates to false, then regardless of the value of the second operand, the expression is false.•For logical or, if the first operand evaluates to true, regardless of the value of the second operand, the expression is true.if n != 0 and 1/n < tolerance:if n != 0: if 1/n < toleranceIn the Python programming language, short-circuit evaluation is used. What if n = 0 ?
Content continues in the PDF. Download PDF
Newest in Computing
- module 4: networking computing notes by niqNotes
- module 2: algorithms and programming computing notes by niqNotes
- module 1: computing fundamentals computing notes by niqNotes
- SST (for revision practice) 2024 S3 Computing EOY P2 QP FinalQuestion paper
- Computing o level notesNotes
- BVSS Prelim P1 MSAnswers
- CWSS Prelim P1 MSSchool answers
- CWSS Prelim P1 CPWith answers
- BVSS Prelim P1 CPWith answers
- computing notesNotes
- SST 2024 Prelim Paper 1 Ans [revised for 2025]School answers
- SST 2024 Prelim Paper 1 [revised for 2025]With answers
