From 43a53db30c177a018d0f51f6a53bd71efb94f2ad Mon Sep 17 00:00:00 2001 From: semanticdata Date: Thu, 7 Mar 2024 12:36:21 -0600 Subject: [PATCH] rename md showcase, rem python cheat sheet --- ...kdown-showcase.md => Markdown Showcase.md} | 0 content/Markdown.md | 2 +- content/Python Cheat Sheet.md | 168 ------------------ 3 files changed, 1 insertion(+), 169 deletions(-) rename content/{markdown-showcase.md => Markdown Showcase.md} (100%) delete mode 100644 content/Python Cheat Sheet.md diff --git a/content/markdown-showcase.md b/content/Markdown Showcase.md similarity index 100% rename from content/markdown-showcase.md rename to content/Markdown Showcase.md diff --git a/content/Markdown.md b/content/Markdown.md index 625905bc8..3531e854e 100644 --- a/content/Markdown.md +++ b/content/Markdown.md @@ -26,4 +26,4 @@ GitHub Flavored Markdown, also known as GFM, is a Markdown flavor used by GitHub ## Markdown Showcase -Check out the [[./markdown-showcase|markdown-showcase]] to see what Markdown can do. +Check out the [[Markdown Showcase|markdown-showcase]] to see what Markdown can do. diff --git a/content/Python Cheat Sheet.md b/content/Python Cheat Sheet.md deleted file mode 100644 index 0c854b850..000000000 --- a/content/Python Cheat Sheet.md +++ /dev/null @@ -1,168 +0,0 @@ ---- -title: Python Cheat Sheet -updated: 2024-02-08 -compartir: true ---- - -# Python Cheat Sheet - -- Python terminal: `python3` in cmd. -- Comments: `#` at the start of any line. -- Print: `print("Stay Safe…)` -- Indentation: must be followed. - -## Examples - -### Example 1 - -```python -num = 5 -print(num) -returns 5 -type(num) - -``` - -### Example 2 - -```python -num = 5.0 -print(num) -returns 5 -type(num) - -``` - -### Example 3 - -```python - greet = "Hello user" - print(greet) - returns: 'Hello user' - type(greet) - -``` - -### Example 4 - -```python -is_available = True -print(is_available) -returns: True -type(is_available) -returns: -``` - -### Example 5 - -```python -num = None -print(num) -returns: None -type(num) -returns: -``` - -## Operators - -`+ - * / % ** // = += -= *= /= == != > < >= <= and or not` - -### Example 1 - -```python -a = 6 -b = 2 -a + b -returns: 8 -a - b -returns = 4 -a / b -returns: 3 -a * b -returns: 12 -a ** b -returns: 36 -``` - -### Example 2 - -```python -a = 7 -b = 3 -a % b -returns: 1 -a // b -returns: 2 -``` - -### Example 3 - -```python -a =- 5 -b = 2 -a > b -returns: True -a < b -returns: False -a == b -returns: False -a >= 5 -returns: True -b <= 1 -returns: False -``` - -### Example 4 - -```python -a = 10 -b = 2 -a == 2 and b == 10 -returns: False -a == 10 or b == 20 -returns: True -not(a == 10) -returns: False -not(a == 2) -returns: True -``` - -## Conditional Statements - -### Example 1 - -```python -number = 5 -if number == 10: -print("Number is 10") -elif number < 10: -print("Number is less than 10") -else: -print("Number is more than 10") -``` - -**Returns**: `Number is less than 10` - -### Example 2 - -```python -is_available = True -f is_available: - print("Yes it is available") -else: - print("Not available") -``` - -**Returns**: `Yes it is available` - -### Example 3 - -```python -is_available = True -if not is_available: - print("Not available") -else: - print("Yes it is available") -``` - -**Returns**: `Yes it is available`