├── Python_Tutorial_Python_Comments.ipynb ├── Python_Tutorial_Python_Syntax.ipynb ├── README.md └── new post ├── _posts └── second post.html /Python_Tutorial_Python_Comments.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "Python Tutorial - Python Comments.ipynb", 7 | "provenance": [], 8 | "authorship_tag": "ABX9TyP4qjuSxZpnciAShLtbb8XJ", 9 | "include_colab_link": true 10 | }, 11 | "kernelspec": { 12 | "name": "python3", 13 | "display_name": "Python 3" 14 | }, 15 | "language_info": { 16 | "name": "python" 17 | } 18 | }, 19 | "cells": [ 20 | { 21 | "cell_type": "markdown", 22 | "metadata": { 23 | "id": "view-in-github", 24 | "colab_type": "text" 25 | }, 26 | "source": [ 27 | "\"Open" 28 | ] 29 | }, 30 | { 31 | "cell_type": "markdown", 32 | "source": [ 33 | "#Python Comments\n", 34 | "In Python we use comments to explain our code, make it readable and test code." 35 | ], 36 | "metadata": { 37 | "id": "QQ6QApOq8G3q" 38 | } 39 | }, 40 | { 41 | "cell_type": "code", 42 | "execution_count": 1, 43 | "metadata": { 44 | "colab": { 45 | "base_uri": "https://localhost:8080/" 46 | }, 47 | "id": "NvEbdK_67Xuo", 48 | "outputId": "ef1d8f54-494a-4b66-8b11-9391f6ee3625" 49 | }, 50 | "outputs": [ 51 | { 52 | "output_type": "stream", 53 | "name": "stdout", 54 | "text": [ 55 | "Hello World!\n" 56 | ] 57 | } 58 | ], 59 | "source": [ 60 | "#This is a Python comment\n", 61 | "print('Hello World!')" 62 | ] 63 | }, 64 | { 65 | "cell_type": "code", 66 | "source": [ 67 | "print('Hello World!') #This is an end of line comment" 68 | ], 69 | "metadata": { 70 | "colab": { 71 | "base_uri": "https://localhost:8080/" 72 | }, 73 | "id": "LEEYrhqB7mb1", 74 | "outputId": "b59d3776-2f4e-4a1d-d96f-0b06ff48bbf2" 75 | }, 76 | "execution_count": 2, 77 | "outputs": [ 78 | { 79 | "output_type": "stream", 80 | "name": "stdout", 81 | "text": [ 82 | "Hello World!\n" 83 | ] 84 | } 85 | ] 86 | }, 87 | { 88 | "cell_type": "code", 89 | "source": [ 90 | "#This is Python code commented out \n", 91 | "#print('Hello World!')" 92 | ], 93 | "metadata": { 94 | "id": "b8cYNKtC7saL" 95 | }, 96 | "execution_count": 3, 97 | "outputs": [] 98 | }, 99 | { 100 | "cell_type": "code", 101 | "source": [ 102 | "#This is a comment\n", 103 | "#On multiple lines\n", 104 | "print('Hello World!')" 105 | ], 106 | "metadata": { 107 | "colab": { 108 | "base_uri": "https://localhost:8080/" 109 | }, 110 | "id": "eTBHwQfA8xvG", 111 | "outputId": "909e7064-c416-4af9-db90-f25b4737179d" 112 | }, 113 | "execution_count": 4, 114 | "outputs": [ 115 | { 116 | "output_type": "stream", 117 | "name": "stdout", 118 | "text": [ 119 | "Hello World!\n" 120 | ] 121 | } 122 | ] 123 | }, 124 | { 125 | "cell_type": "code", 126 | "source": [ 127 | "\"\"\" \n", 128 | "This is also\n", 129 | "a comment across\n", 130 | "multiple lines\n", 131 | "\"\"\"\n", 132 | "print('Hello World!')" 133 | ], 134 | "metadata": { 135 | "colab": { 136 | "base_uri": "https://localhost:8080/" 137 | }, 138 | "id": "NmNuFSXv84Zj", 139 | "outputId": "aa666e50-eaad-4629-9c99-014b4b3954d9" 140 | }, 141 | "execution_count": 5, 142 | "outputs": [ 143 | { 144 | "output_type": "stream", 145 | "name": "stdout", 146 | "text": [ 147 | "Hello World!\n" 148 | ] 149 | } 150 | ] 151 | }, 152 | { 153 | "cell_type": "markdown", 154 | "source": [ 155 | "## Your Turn!\n", 156 | "Edit and execute the following code in your chosen Python environment." 157 | ], 158 | "metadata": { 159 | "id": "OCPd46y99TN1" 160 | } 161 | }, 162 | { 163 | "cell_type": "code", 164 | "source": [ 165 | "print('Turn this line of code into a comment.')\n", 166 | "print('Hello World!')" 167 | ], 168 | "metadata": { 169 | "colab": { 170 | "base_uri": "https://localhost:8080/" 171 | }, 172 | "id": "NO08AwLj9VeZ", 173 | "outputId": "7e360285-b1e2-4001-d776-e83845ee2654" 174 | }, 175 | "execution_count": 8, 176 | "outputs": [ 177 | { 178 | "output_type": "stream", 179 | "name": "stdout", 180 | "text": [ 181 | "Turn this into a comment.\n", 182 | "Hello World!\n" 183 | ] 184 | } 185 | ] 186 | } 187 | ] 188 | } -------------------------------------------------------------------------------- /Python_Tutorial_Python_Syntax.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "nbformat": 4, 3 | "nbformat_minor": 0, 4 | "metadata": { 5 | "colab": { 6 | "name": "Python Tutorial - Python Syntax.ipynb", 7 | "provenance": [], 8 | "authorship_tag": "ABX9TyMUUOLnqYHUjQXdArUQlL0p", 9 | "include_colab_link": true 10 | }, 11 | "kernelspec": { 12 | "name": "python3", 13 | "display_name": "Python 3" 14 | }, 15 | "language_info": { 16 | "name": "python" 17 | } 18 | }, 19 | "cells": [ 20 | { 21 | "cell_type": "markdown", 22 | "metadata": { 23 | "id": "view-in-github", 24 | "colab_type": "text" 25 | }, 26 | "source": [ 27 | "\"Open" 28 | ] 29 | }, 30 | { 31 | "cell_type": "markdown", 32 | "source": [ 33 | "#Python Syntax\n" 34 | ], 35 | "metadata": { 36 | "id": "QQ6QApOq8G3q" 37 | } 38 | }, 39 | { 40 | "cell_type": "code", 41 | "execution_count": 2, 42 | "metadata": { 43 | "colab": { 44 | "base_uri": "https://localhost:8080/" 45 | }, 46 | "id": "NvEbdK_67Xuo", 47 | "outputId": "bb7c7b16-9d6e-437c-a12d-6381430bc41a" 48 | }, 49 | "outputs": [ 50 | { 51 | "output_type": "stream", 52 | "name": "stdout", 53 | "text": [ 54 | "1\n", 55 | "2\n", 56 | "3\n", 57 | "4\n", 58 | "5\n" 59 | ] 60 | } 61 | ], 62 | "source": [ 63 | "#This is Python Indentation; it makes your code readable and identifies a block of code\n", 64 | "list = [1,2,3,4,5]\n", 65 | "for x in list:\n", 66 | " print(x)" 67 | ] 68 | }, 69 | { 70 | "cell_type": "code", 71 | "source": [ 72 | "#We have assigned integers to the x and y variables,and we can use these variables across our program.\n", 73 | "x = 10\n", 74 | "y = 5\n", 75 | "\n", 76 | "if x > y:\n", 77 | " print('x is greater than y')\n", 78 | "else:\n", 79 | " print('y is greater than x')" 80 | ], 81 | "metadata": { 82 | "colab": { 83 | "base_uri": "https://localhost:8080/" 84 | }, 85 | "id": "LEEYrhqB7mb1", 86 | "outputId": "317624b1-5070-4636-8ff9-77e6559f5060" 87 | }, 88 | "execution_count": 6, 89 | "outputs": [ 90 | { 91 | "output_type": "stream", 92 | "name": "stdout", 93 | "text": [ 94 | "x is greater than y\n" 95 | ] 96 | } 97 | ] 98 | }, 99 | { 100 | "cell_type": "code", 101 | "source": [ 102 | "#This is a comment, it makes our code more readable\n", 103 | "print('Hello World!')" 104 | ], 105 | "metadata": { 106 | "id": "b8cYNKtC7saL", 107 | "colab": { 108 | "base_uri": "https://localhost:8080/" 109 | }, 110 | "outputId": "80c93bb5-801e-4192-e65b-5ef27f53c3cd" 111 | }, 112 | "execution_count": 7, 113 | "outputs": [ 114 | { 115 | "output_type": "stream", 116 | "name": "stdout", 117 | "text": [ 118 | "Hello World!\n" 119 | ] 120 | } 121 | ] 122 | }, 123 | { 124 | "cell_type": "markdown", 125 | "source": [ 126 | "## Your Turn!\n", 127 | "Edit and execute the following code in your chosen Python environment." 128 | ], 129 | "metadata": { 130 | "id": "OCPd46y99TN1" 131 | } 132 | }, 133 | { 134 | "cell_type": "code", 135 | "source": [ 136 | "print('Turn this line of code into a comment.')\n", 137 | "#x = 10 #Turn this comment into a variable \n", 138 | "print(x)\n", 139 | "\n", 140 | "#if x > y:\n", 141 | " #print('this is indentation')\n", 142 | "#else:\n", 143 | " #print('this is also indentation')" 144 | ], 145 | "metadata": { 146 | "colab": { 147 | "base_uri": "https://localhost:8080/" 148 | }, 149 | "id": "NO08AwLj9VeZ", 150 | "outputId": "4dfddeee-f7f1-4363-ac25-2a31090443c1" 151 | }, 152 | "execution_count": 9, 153 | "outputs": [ 154 | { 155 | "output_type": "stream", 156 | "name": "stdout", 157 | "text": [ 158 | "Turn this line of code into a comment.\n", 159 | "10\n" 160 | ] 161 | } 162 | ] 163 | } 164 | ] 165 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Python Course - From Beginner To Advanced 2 | Free Python Course: From Beginner To Advanced
3 | Additional content will be added in the future. (articles, cheat sheets, datasets and more) 4 | 5 | **All Material Included - Over 200 Python Projects, Over 1000 Downloadable Assets** 6 | 7 | Earn a certificate:
8 | - [ ] Read all articles 9 | - [ ] Liked or commented on articles 10 | - [ ] Completed Projects 11 | 12 | Once you have completed the step above, I will send you a certificate of completion.
13 | 14 | [Projects - 200 Python projects](https://github.com/natnew/200-Projects-For-Beginners-Using-Python-Series)
15 | [Projects - 100 Python projects](https://github.com/natnew/100-Python-Projects)
16 | [Resources - Python Crash course](https://github.com/natnew/Python-Crash-Course-For-Beginners)
17 | [Articles](https://medium.com/@natashanewbold)
18 | 19 | 20 | Get a **solid python foundation**, and accelerate your learning with these tutorials.
21 | 22 | ## Python Tutorials 23 | [Getting Started With Python](https://github.com/natnew/Python-Course)
24 | [Python Syntax](https://github.com/natnew/Python-Course)
25 | [Python Comments](https://github.com/natnew/Python-Course)
26 | [Python Variables](https://github.com/natnew/Python-Course)
27 | [Python Data Types](https://github.com/natnew/Python-Course)
28 | [Python Numbers](https://github.com/natnew/Python-Course)
29 | [Python Casting](https://github.com/natnew/Python-Course)
30 | [Python Strings](https://github.com/natnew/Python-Course)
31 | [Python Booleans](https://github.com/natnew/Python-Course)
32 | [Python Operators](https://github.com/natnew/Python-Course)
33 | [Python Lists](https://github.com/natnew/Python-Course)
34 | [Python Tuples](https://github.com/natnew/Python-Course)
35 | [Python Sets](https://github.com/natnew/Python-Course)
36 | [Python Dictionaries](https://github.com/natnew/Python-Course)
37 | [Python If...Else](https://github.com/natnew/Python-Course)
38 | [Python While Loop](https://github.com/natnew/Python-Course)
39 | [Python Functions](https://github.com/natnew/Python-Course)
40 | [Python Lambda](https://github.com/natnew/Python-Course)
41 | [Python Arrays](https://github.com/natnew/Python-Course)
42 | [Python Classes/Objects](https://github.com/natnew/Python-Course)
43 | [Python Inheritance](https://github.com/natnew/Python-Course)
44 | [Python Iterators](https://github.com/natnew/Python-Course)
45 | [Python Scope](https://github.com/natnew/Python-Course)
46 | [Python Modules](https://github.com/natnew/Python-Course)
47 | [Python Dates](https://github.com/natnew/Python-Course)
48 | [Python Math](https://github.com/natnew/Python-Course)
49 | [Python JSON](https://github.com/natnew/Python-Course)
50 | [Python RegEx](https://github.com/natnew/Python-Course)
51 | [Python PIP](https://github.com/natnew/Python-Course)
52 | [Python Try...Except](https://github.com/natnew/Python-Course)
53 | [Python User Input](https://github.com/natnew/Python-Course)
54 | [Python String Formatting](https://github.com/natnew/Python-Course)
55 | 56 | 57 | *Note: If you do not see a particular project in the repository, it may be in the process of being updated. Please be patient, and you will see it soon. 58 | 59 | 60 | [![HitCount](http://hits.dwyl.com/natnew/natnew/Python-Course.md.svg)](http://hits.dwyl.com/natnew/natnew/Python-Course/edit/main/README.md) 61 | 62 | 63 | -------------------------------------------------------------------------------- /new post/_posts: -------------------------------------------------------------------------------- 1 | Test post 2 | -------------------------------------------------------------------------------- /new post/second post.html: -------------------------------------------------------------------------------- 1 | test 2 | --------------------------------------------------------------------------------