1
0
Derivar 0

Add relational operators.

Este cometimento está contido em:
Josh Mudge 2018-12-27 18:03:18 -07:00
ascendente 4aaf387c89
cometimento 04a799c56e
1 ficheiros modificados com 19 adições e 0 eliminações

Ver ficheiro

@ -87,12 +87,31 @@ strings"""
True = int(1)
False = int(0)
## Relational Operators (ch.4, ex. 3)
`==` returns `True` if is is equal and returns `False` otherwise.
`!=` returns `True` if is is NOT equal and returns `False` otherwise.
Here are more of he same kind of operator:
`>` greater than
`<` less than
`>=` greater than or equal to
`<=` less than or equal to
# Datatypes
Force treating as a string: str(7)
Force treating as an integer: int("7")
Froce treating as a float: float(7)
## Check Datatypes
Check datatypes using type(var)
# Escaping Characters
Simply add a `\` to escape a character that would otherwise cause issues.