Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit aaa906c

Browse files
Revision-1.0
1 parent 2bcdaa3 commit aaa906c

26 files changed

+102
-118
lines changed

‎02-Tests/test1.py

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

‎02-Tests/test2.py

Whitespace-only changes.

‎02-Tests/test3.py

Whitespace-only changes.

‎03-Python_Basics/0-Aim_Of_Learning.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Goals for learning Python
2+
3+
AI & Machine Learning.
4+
5+
## Pre-Basics
6+
7+
Programming Language: A language to communicate with machines
8+
9+
Human -> Programming Language -> Interpreter / Compiler -> Machine Language [Binary(0, 1)] -> Machine Work
10+
11+
Programming Languages: Python, JavaScript (JS), Ruby, C/C++, Go, Rust etc.
12+
13+
Python -> Interpreter -> cpython -> Machine Language / Binary
14+
15+
That's why Python is not as fast as C or C++ ;(
16+
17+
Python is much closer to english lol ;)
18+
19+
C/C++ -> Compiler -> Machine Language / Binary
20+
21+
Interpreter: Reads code line by line.
22+
23+
Compiler: Reads whole file at a time...

‎03-Python_Basics/0-Virtual_Environments.md

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

‎03-Python_Basics/01-Aim_Of_Learning.py

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Setting up a Virtual Environment
2+
3+
python -m venv venv
4+
5+
python -m venv "Virtual Environment Name"
6+
7+
## Activate Environment
8+
9+
.\Scripts\activate - Windows
10+
11+
source bin/activate - Linux\Mac
12+
13+
deactivate - Deactivate Environment
14+
15+
## Check Installed Packages
16+
17+
pip freeze
18+
19+
pip list
20+
21+
## Another way to Set-Up a VirtualEnvironment - virtualenv
22+
23+
virtualenv - Check availability
24+
25+
virtualenv venv
26+
27+
virtualenv "Virtual Environment Name"
28+
29+
virtualenv -p python3
30+
31+
virtualenv venv -p python3
32+
33+
virtualenv venv -p "Specfic Python Version File Path"
34+
35+
## Installing Packages (django)
36+
37+
pip install django==2.0.7
38+
39+
pip install django
40+
41+
## Create a Django Project
42+
43+
django-admin - Check availablability
44+
45+
django-admin startproject trydjango
46+
47+
django-admin startproject <Project_Name>
48+
49+
## Run Django Server
50+
51+
python manage.py runserver
52+
53+
## Django & Database Sync
54+
55+
python manage.py makemigrations
56+
57+
python manage.py migrate
58+
59+
## Create an admin account for the current Django Project
60+
61+
python manage.py createsuperuser
62+
63+
Change the Secret Key for production environment.
64+
65+
Turn debugging False for production environment.
66+
67+
## Create project specfic modules\apps
68+
69+
python manage.py startapp products
70+
71+
python manage.py startapp "app\module Name"
72+
73+
add this module\app name in settings.py, under INSTALLED_APPS
74+
75+
Source: [Django Tutorial from freeCodeCamp.org On YouTube](https://www.youtube.com/watch?v=F5mRW0jo-U4&list=TLPQMDQwMTIwMjMMRpvYEK4nKQ&index=5)

‎03-Python_Basics/02a-Scope.py renamed to ‎03-Python_Basics/02a-Scopes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def fun1():
3232

3333

3434
# 1
35-
def confusion(): # - It has it's own universe
35+
def confusion(): # - It has it's own little universe lol ;)
3636
a = 5
3737
return a
3838

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /