Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
27 views

Lesson 8 - Data in Python: Boolean Notation

Lesson 8 covers data in Python including Boolean notation and literals. Boolean notation includes operators like AND (A.B), OR (A+B), and NOT (>A). Literals take values at face value and include numeric literals like integers (-10) and floats (10.24) which can be positive or negative and may include a decimal point. The lesson is about representing different types of data in Python.

Uploaded by

raasiboi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Lesson 8 - Data in Python: Boolean Notation

Lesson 8 covers data in Python including Boolean notation and literals. Boolean notation includes operators like AND (A.B), OR (A+B), and NOT (>A). Literals take values at face value and include numeric literals like integers (-10) and floats (10.24) which can be positive or negative and may include a decimal point. The lesson is about representing different types of data in Python.

Uploaded by

raasiboi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lesson 8 Data in Python

Boolean Notation
A and B

A.B A^B

A or B

A+B AvB

Not A

>A

A XOR B

A B (plus in circle)

Its all about Data!


Literals
To take something literally is to take it at face value
The same is true of literals in programming
A literal is a sequence of one r more characters that stands for itself, such as the
literal 12
Numeric literals
A numeric literal contains only the digits 0-9 an optional sign character or + and a
possible decimal point
If it has a decimal point, then it denotes a floating-point value, or float (10.24)
Otherwise, it denotes an integer value (-10)

You might also like