From 04a799c56effcc611ed8a2a92efe3fd4ee570034 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 27 Dec 2018 18:03:18 -0700 Subject: [PATCH] Add relational operators. --- Codecademy.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Codecademy.md b/Codecademy.md index b496ec1..2b3213f 100644 --- a/Codecademy.md +++ b/Codecademy.md @@ -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.