O

oct(integer)

 

Module: Built-in

Syntax: oct(integer)

Description: Returns the octal representation of the integer. See Python documentation for more details.

Example:

>>> oct(8)

'0o10'

>>> oct(64)

'0o100'

y N

 

or

 

Keyword

Syntax: x or y

Description: May return True or False. Returns x if x evaluates as True and y otherwise. Pastes with space before and after or. Edit as needed.

Example:

>>>2<5 or 5<10

True

>>>2<5 or 15<10

True

>>>12<5 or 15<10

False

>>> 3 or {}

3

>>> [] or {2}

{2}

y : Ops 9:or

[Fns…] > Ops 9:or

 

y N

 

[a A #]

 

ord("character")

 

Module: Built-in

Syntax: ord("character")

Description: Returns the unicode value of the character. See Python documentation for more details.

Example:

>>> ord("#")

35

>>> ord("/")

47

y N