From d4fe711e1068d05782beb1130615d8e4af201be5 Mon Sep 17 00:00:00 2001 From: Junior <junior@jaj.com> Date: Wed, 12 Jun 2024 13:06:18 -0400 Subject: [PATCH] More info about basic types --- Python/000_basics.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Python/000_basics.py b/Python/000_basics.py index 90f994c..84ed562 100644 --- a/Python/000_basics.py +++ b/Python/000_basics.py @@ -17,6 +17,15 @@ name = "Computer User" # separating them with commas print("Your name is:", name) +# There are several basic data types for variables: +# int: Integer number (no decimal) +# float: Floating point number (has a decimal component) +# str: String. This is a collection of characters bounded by single or double quotes +# bool: Boolean. This is either True or False +# bytes: A string that holds binary data +# Created thusly: b"\x28\x67\x67\x29" (converts to the ascii characters "(gg)") +# More info: https://realpython.com/python-data-types/ + # Our first number # The "=" here is an "assignment operator" # meaning "assign the value on the right to the variable on the left"