From 3a5f5a49098805314d7fee7658d5420773f88edd Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Tue, 4 Oct 2022 12:00:05 +0100 Subject: [PATCH] Last Sync: 2022-10-04 12:00:05 --- Programming_Languages/Python/Data_types.md | 15 +++++++++++++++ .../Python/Naming_conventions.md | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Programming_Languages/Python/Data_types.md create mode 100644 Programming_Languages/Python/Naming_conventions.md 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 +```