-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
293 lines (290 loc) · 20.2 KB
/
index.html
File metadata and controls
293 lines (290 loc) · 20.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<html lang="en">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" content="Introduction to Python Programming | Features of Python Programming | Installing Python | Debugging | Formal and Natural languages | Difference between brackets, braces, and parentheses" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="images/introduction/introduction.PNG" />
<meta name="twitter:title" content="Introduction . Python Programming . Infinitbility" />
<meta name="twitter:description" content="Introduction to Python Programming | Features of Python Programming | Installing Python | Debugging | Formal and Natural languages | Difference between brackets, braces, and parentheses" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Introduction . Python Programming . Infinitbility" />
<meta property="og:description" content="Introduction to Python Programming | Features of Python Programming | Installing Python | Debugging | Formal and Natural languages | Difference between brackets, braces, and parentheses" />
<meta property="og:image" content="images/introduction/introduction.PNG" />
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://infinitbility.com/python-programming">
<meta property="og:type" content="website">
<meta property="og:title" content="Introduction . Python Programming . Infinitbility">
<meta property="og:description" content="Introduction to Python Programming | Features of Python Programming | Installing Python | Debugging | Formal and Natural languages | Difference between brackets, braces, and parentheses">
<meta property="og:image" content="images/introduction/introduction.PNG">
<title>Introduction . Python Programming . Infinitbility</title>
<link type="text/css" rel="stylesheet" href="app.css" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-173614282-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-173614282-1');
</script>
</head>
<body>
<div id="root">
<div class="Layout_lugqar2">
<aside class="SidebarContent_s9nrg4n">
<input type="checkbox" id="slide-sidebar" role="button" class="MenuButton_mzfqg8l" />
<label for="slide-sidebar" class="MenuIcon_m1mups47">☰</label>
<div class="MenuContent_mdzibsv">
<img src="images/infinitbility.png" alt="Infinitbility" class="LogoImage_llziuo3" />
<nav class="Navigation_nlggdah">
<a data-selected="true" class="LinkItem_l5q2p2e" href="index.html">Introduction</a>
<a data-selected="false" class="LinkItem_l5q2p2e" href="#">Coming Soon</a>
</nav>
</div>
</aside>
<div class="cq2xmza">
<div class="c8u27k0">
<h1> Introduction To Python Programming </h1>
<p>Python is a high-level Programming language. Python was developed by Guido van Rossum. The python language's first version was released in 1991. python language is named as python after the BBC show "Monty Python's Flying Circus"</p>
<!-- <div class="b18qaob2"><a href="pdf/introduction-to-python-Programming.pdf" target="_BLANK" class="bogkfcm">PDF Formate</a></div> -->
<h2 id="introduction">
<a class="anchor" href="#introduction">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Introduction Topics
</h2>
<p class="t19xrsv6">
<ul>
<li>Features</li>
<li>Installing Python</li>
<li>Running Python</li>
<li>Debugging</li>
<li>Formal and Natural Language</li>
<li>Difference Between Brackets, Braces, and Parentheses</li>
</ul>
</p>
<h2 id="introduction">
<a class="anchor" href="#features">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Features of Python Programming
</h2>
<p>
<ul>
<li>High level Programming language</li>
<li>Python is a free and open source language</li>
<li>Python is simple</li>
<li>Error checking and high level data type</li>
<li>Platform independent language</li>
<li>User friendly</li>
<li>Python is object oriented</li>
</ul>
</p>
<h3 id="highlevelProgramminglanguage">
<a class="anchor" href="#highlevelProgramminglanguage">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>High level Programming language
</h3>
<p>
<ul>
<li>High level language means, this is separate from the low level processor operations.</li>
<li>High level language is closer to human language than machine language in other words high level language is English like language and on the other hand low level language is a machine code in which instruction and data are directly executed by the CPU.</li>
</ul>
</p>
<h3 id="pythonisfree">
<a class="anchor" href="#pythonisfree">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Python is a free and open source language
</h3>
<p>
<ul>
<li>Python is free, there is no need to pay money for installing python.</li>
<li>Python is an open source language means, any one can use python source code for making any changes on feature in python.</li>
</ul>
</p>
<h3 id="pythonissimple">
<a class="anchor" href="#pythonissimple">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Python is simple
</h3>
<p>
<ul>
<li>There is no need of declaring variables in python.</li>
<li>In a single statement the user can express the complex operation.</li>
<li>It uses indentation for statement grouping. Such as “print(‘hello’)”</li>
</ul>
</p>
<h3 id="errorchecking">
<a class="anchor" href="#errorchecking">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Error checking and high level data types
</h3>
<p>
<ul>
<li>Python offers more effective error checking then c.</li>
<li>Python is having built in high level data types for example arrays and dictionaries.</li>
<li>Python have more general data types compare to Awk and perl.</li>
</ul>
</p>
<h3 id="platformindependentlanguage">
<a class="anchor" href="#platformindependentlanguage">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Platform independent language
</h3>
<p>
<ul>
<li>Python is platform independent, it means write your python program any operating system and run it on any machine which has python</li>
<li>For example, if we have python code for windows and if we want to run this code on other platforms such as Linux, Unix, and Mac then we do not need to change it, we can run this code on any platform.</li>
</ul>
</p>
<h3 id="userfriendly">
<a class="anchor" href="#userfriendly">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>User friendly
</h3>
<p>
<ul>
<li>In Python you can divide your program into modules that can be used in other python programs.</li>
<li>Python is having a large collection of modules as their program. User can use these modules as the basis of their program</li>
<li>Python language is having the feature of abstraction which make it more user friendly.</li>
</ul>
</p>
<h3 id="pythonisobjectoriented">
<a class="anchor" href="#pythonisobjectoriented">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Python is object oriented
</h3>
<p>Python supports object-oriented language and concepts of classes and objects come into existence. It supports inheritance, polymorphism, and encapsulation, etc. The object-oriented procedure helps to programmer to write reusable code and develop applications in less code</p>
<h2 id="installingpython">
<a class="anchor" href="#installingpython">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Installing Python
</h2>
<a href="https://www.python.org" target="_blank" rel="noopener noreferrer">www.python.org</a>
<p class="t19xrsv6">
<img src="images/introduction/installing-python.PNG" alt="Installing Python"/>
</p>
<h2 id="runningpythonprogram">
<a class="anchor" href="#runningpythonprogram">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Running Python Program
</h2>
<p class="t19xrsv6">- Create new file with python extension. Like example.py</p>
<p class="t19xrsv6">- Write program on python file</p>
<p class="t19xrsv6">- Click F5 else click on run -> Run Modules on menu </p>
<h2 id="debugging">
<a class="anchor" href="#debugging">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Debugging
</h2>
<p class="t19xrsv6">In Programming various errors occurred they are called as bugs. The process of tracking these bug is called debugging.</p>
<h3 id="typesoferrors">
<a class="anchor" href="#typesoferrors">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Types of Errors
</h3>
<p>
<ul>
<li>Syntax</li>
<li>Runtime</li>
<li>Semantic</li>
<li>Experimental debugging</li>
</ul>
</p>
<h4 id="syntaxerrors">
<a class="anchor" href="#syntaxerrors">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Syntax Errors
</h4>
<p>- The syntax means the structure of the program. It the syntax is not correct it result in syntax error. </p>
<p>- For example. Print(2+2 forgot to close parentheses then you got syntax error</p>
<h4 id="runtimeerrors">
<a class="anchor" href="#runtimeerrors">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Runtime Errors
</h4>
<p>- Runtime errors are known as runtime errors because the error does not appear after the program has started running runtime errors are also known as exception which indicates something bad happened.</p>
<p>- Runtime error occurs very rarely.</p>
<h4 id="semanticerrors">
<a class="anchor" href="#semanticerrors">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Semantic Errors
</h4>
<p>- In case of semantic error your program will execute properly without showing any error message but it will not given the correct result. You can also say that there is a logical error. </p>
<h4 id="experimentaldebugging">
<a class="anchor" href="#experimentaldebugging">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Experimental Debugging
</h4>
<p>- Debugging is a challenging work. Here you will get the clues and you have to infer the processes and events that led to the results you see. Debugging is also known as an experimental science. </p>
<h2 id="formalandnaturallanguages">
<a class="anchor" href="#formalandnaturallanguages">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Formal and Natural languages
</h2>
<p>- The language which people speak is known as natural language. Such as Hindi, Marathi, English, and etc.</p>
<p>- Formal languages are designed by people for particular application. Formal languages have strict rules about syntax.</p>
<p>- Natural languages have ambiguity. In this people uses related evidences and other information.</p>
<p>- Formal languages are unambiguous. In formal languages any statement has exactly one meaning , apart from background.</p>
<h2 id="differencebetweenbracketsbracesandparentheses">
<a class="anchor" href="#differencebetweenbracketsbracesandparentheses">
<svg width="16" height="16">
<path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path>
</svg>
</a>Difference between brackets, braces, and parentheses.
</h2>
<p> - () Parentheses - a = (1, 2, 3); // tuple</p>
<p> - [] Brackets - list = [1, 2, 3, 4]; // list</p>
<p> - {} Braces – dict = {‘name’ : ‘infinitbility’}; // dictionaries</p>
</div>
</div>
</div>
</div>
<style type="text/css">
:root {
--theme-primary-color: #397af9;
}
</style>
<script>
window.__INITIAL_PATH__ = "index";
</script>
</body>
</html>