diff --git a/Programming_Languages/Python/Data_types.md b/Programming_Languages/Python/Data_types.md new file mode 100644 index 0000000..671ff20 --- /dev/null +++ b/Programming_Languages/Python/Data_types.md @@ -0,0 +1,15 @@ +--- +title: Python datatypes +categories: + - Programming Languages +tags: [python] +--- + +# Python datatypes + +The core datatypes are as follows: + +- str +- bool +- float +- double diff --git a/Programming_Languages/Python/Naming_conventions.md b/Programming_Languages/Python/Naming_conventions.md new file mode 100644 index 0000000..6273ed6 --- /dev/null +++ b/Programming_Languages/Python/Naming_conventions.md @@ -0,0 +1,17 @@ +--- +title: Python naming conventions +categories: + - Programming Languages +tags: [python] +--- + +# Python naming conventions + +## Underscores + +To name a variable or method with multiple words we use underscores to separate each word. + +```python +an_int = 32 +print(an_integer.is_integer) # true +```