Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit c7ea0f1

Browse files
committed
Restructure for readability
1 parent d129496 commit c7ea0f1

194 files changed

Lines changed: 146 additions & 126 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Content-Type: text/x-zim-wiki
2+
Wiki-Format: zim 0.6
3+
Creation-Date: 2021-03-15T20:02:32+05:30
4+
5+
====== 1. Python - WH questions ======
6+
Created Monday 15 March 2021
7+
8+
* Python is stricly indented and does not use {} as code-blocks.
9+
* Semicolons are not required.
10+
* Semicolons can be used to write multiple statements in one line. This is frowned upon, because it hampers readablity. This is purely cosmetic and doesn't change execution procedure.
11+
* Blocks statements have the same indentation, continually. A block in python is called a 'suite'.

‎1._Intro/1._Setup.txt‎

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎1._Intro/2._Python_-_WH_questions.txt‎

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Content-Type: text/x-zim-wiki
2+
Wiki-Format: zim 0.6
3+
Creation-Date: 2021-03-15T20:04:33+05:30
4+
5+
====== 2. Python - language details ======
6+
Created Monday 15 March 2021
7+
8+
Skim the [[https://en.wikipedia.org/wiki/Python_(programming_language)|Wikipedia page.]]

‎1._Intro/3._Python_-_language_details.txt‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎1._Intro/3._Setup.txt‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Content-Type: text/x-zim-wiki
2+
Wiki-Format: zim 0.6
3+
Creation-Date: 2021-03-15T19:33:01+05:30
4+
5+
====== 3. Setup ======
6+
Created Monday 15 March 2021
7+
8+
=== Python Installation ===
9+
**For Windows**
10+
* Download and install executable from www.python.org
11+
* While installing, check the "Add to environment PATH" option.
12+
13+
**For Linux and Mac**
14+
Warning: Don't install/update the system(built-in) Python. It can mess up your system.
15+
* Install pyenv.
16+
* Then install latest version of Python3.
17+
* All steps: https://youtu.be/fv8YxO3AJqg
18+
19+
=== Code Editor(I prefer VS Code) ===
20+
* Install the official executable for Visual Studio Code.
21+
* Install these extensions:
22+
* Python - by Microsoft
23+
* Pylance - by Microsoft
24+
* Visual Studio Intellicode - by Microsoft
25+
* Code Runner - by Jun Han
26+
* Go to Settings → Extensions → Code Runner and enable "Run in Integrated terminal".
27+
28+
=== Running Python code ===
29+
There are two ways to run python code:
30+
1. REPL - open terminal, write ''python3'', press Enter. You can now run Python. Good for experimenting.
31+
2. Run code from file(s), for more "persistent" work.

2._Learning_Python/A._Basic_-_no_OOP/1._Basics.txt renamed to 2._Learning_Python/A._Basic_-_no_OOP/1._Basic_constructs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Content-Type: text/x-zim-wiki
22
Wiki-Format: zim 0.6
33
Creation-Date: 2020-05-15T01:28:05+05:30
44

5-
====== 1. Basics ======
5+
====== 1. Basic constructs ======
66
Created Friday 15 May 2020
77

88
1. ''type''(variable) returns the type of the variable.

2._Learning_Python/A._Basic_-_no_OOP/1._Basics/1._Variables.txt renamed to 2._Learning_Python/A._Basic_-_no_OOP/1._Basic_constructs/1._Variables.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Same as C++
1818

1919
**Basic Ops**
2020
* int(str, radix) returns the integer value.
21-
21+
FIXME
2222
There are 3 kinds of variables in python:
2323
1. Global variables
2424
2. Function Variables

2._Learning_Python/A._Basic_-_no_OOP/1._Basics/1_variables.py renamed to 2._Learning_Python/A._Basic_-_no_OOP/1._Basic_constructs/1_variables.py

File renamed without changes.

2._Learning_Python/A._Basic_-_no_OOP/1._Basics/3._Conditionals,_loops,_operators/2._Operators.txt renamed to 2._Learning_Python/A._Basic_-_no_OOP/1._Basic_constructs/2._Operators.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Created Thursday 14 January 2021
1414
* BODMAS is followed for precedence, same as C++
1515
* Associativity same as C++
1616

17-
=== Comparison ===
17+
=== Relational ===
1818
1. ''=='' equality
1919
2. ''!='' in equality
2020
3. ''>'', ''>='' and all //sensible// variations.
@@ -30,13 +30,7 @@ Created Thursday 14 January 2021
3030
* (a and b)
3131
* ''!'' is not an operator by itself in python.
3232

33-
=== Truthy and Falsy values ===
34-
* Python has the concept of truthy and falsy values.
35-
* There are 8 falsy values: 0, 0.0, 0j, "", (), {}, [], None are equivalent to False. Everything else is falsy.
36-
* ShortCircuiting exists for logical operators.
37-
3833
=== Bitwise operators ===
3934
Python follows 2's complement notation - standard.
4035
* ''>>'' - right shift. Sign is preserved
4136
* ''<<'' - left shift. 0's are padded
42-

0 commit comments

Comments
 (0)