Skip to content

Commit 409e7e2

Browse files
author
codebasics
committed
Merge branch 'master' of https://github.com/codebasics/py into master
2 parents 5552ad5 + 4fd3f62 commit 409e7e2

File tree

7 files changed

+87
-40
lines changed

7 files changed

+87
-40
lines changed

Basics/Hindi/6_if/Exercise/6_exercise1_2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
print("Both cities are in india")
1919
elif city1 in pakistan and city2 in pakistan:
2020
print("Both cities are in pakistan")
21-
elif city1 in bangladesh and bangladesh in india:
21+
elif city1 in bangladesh and city2 in bangladesh:
2222
print("Both cities are in bangladesh")
2323
else:
24-
print("They don't belong to same country")
24+
print("They don't belong to same country")

Basics/area.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# IT will calculate the area of a triangle
2+
# Area of Traingle is=1/2*Base*Height
13
def calculate_area(base, height):
24
print("__name__: ",__name__)
35
return 1/2*(base*height)

DataScience/BangloreHomePrices/client/app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="img"></div>
1111
<form class="form">
1212
<h2>Area (Square Feet)</h2>
13-
<input class="area" type="email" id="uiSqft" class="floatLabel" name="Squareft" value="1000">
13+
<input class="area" type="text" id="uiSqft" class="floatLabel" name="Squareft" value="1000">
1414
<h2>BHK</h2>
1515
<div class="switch-field">
1616
<input type="radio" id="radio-bhk-1" name="uiBHK" value="1"/>

DeepLearningML/14_imbalanced/handling_imbalanced_data_exercise.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
1. OVersampling: SMOT
77
1. Ensemble
88

9-
[Solution](https://github.com/codebasics/py/blob/master/DeepLearningML/13_imbalanced/handling_imbalanced_data_exercise_solution_telecom_churn.ipynb)
9+
[Solution](https://github.com/codebasics/py/blob/master/DeepLearningML/14_imbalanced/handling_imbalanced_data_exercise_solution_telecom_churn.ipynb)
1010

1111
2. Take this dataset for bank customer churn prediction : https://www.kaggle.com/barelydedicated/bank-customer-churn-modeling
1212
1. Build a deep learning model to predict churn rate at bank

DeepLearningML/16_cnn_cifar10_small_image_classification/cnn_cifar10_dataset.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@
644644
"Use CNN to do handwritten digits classification using MNIST dataset. You can use this notebook as a reference:\n",
645645
"https://github.com/codebasics/py/blob/master/DeepLearningML/1_digits_recognition/digits_recognition_neural_network.ipynb\n",
646646
"\n",
647-
"Above we used ANN for digits classification. You need to modify this code to use CNN instead. Check how accuracy improves fast with CNN and figure out how CNN can be a better choice for doing image classification compared to ANN. Once you have worked on this problem on your own, you can check my solution by clicking on this link: [Solution](https://github.com/codebasics/py/blob/master/DeepLearningML/16_cnn_handwritten_digits/cnn_mnist_exercise_solution.ipynb)"
647+
"Above we used ANN for digits classification. You need to modify this code to use CNN instead. Check how accuracy improves fast with CNN and figure out how CNN can be a better choice for doing image classification compared to ANN. Once you have worked on this problem on your own, you can check my solution by clicking on this link: [Solution](https://github.com/codebasics/py/blob/master/DeepLearningML/16_cnn_cifar10_small_image_classification/cnn_mnist_exercise_solution.ipynb)"
648648
]
649649
}
650650
],

README.md

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# py
2-
Repository to store sample python programs for python learning
3-
Youtube channel https://www.youtube.com/channel/UCh9nVJoWXmFb7sLApWGcLPQ
2+
Repository to store sample Python programs.
3+
4+
This repository is meant for beginners to assist them in their learning of Python. The repository covers a wide range of algorithms and other programs, and would prove immensely helpful for everybody interested in Python programming.
5+
6+
If this is your first time coding in Python, I would love to suggest you begin from the [Basics](https://github.com/codebasics/py/tree/master/Basics). They are simple to understand and hopefully will prove fun to you.
7+
8+
You can also pay a visit to my very own [Youtube channel](https://www.youtube.com/channel/UCh9nVJoWXmFb7sLApWGcLPQ).
9+
10+
Contributions to the repository are welcome.
11+
12+
[![CodeBasics](https://yt3.ggpht.com/ytc/AAUvwnihwx4a5idwBTE5JFpXHb-ykyh-i1gXtFiGJYV1=s176-c-k-c0x00ffffff-no-rj)](https://www.youtube.com/channel/UCh9nVJoWXmFb7sLApWGcLPQ).
13+
14+
#### Happy coding!
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,26 @@
1-
# Step by step guide on how you can learn programming
1+
# Step by step guide on how you can learn programming in 6 months
22

3-
Below is the 11 step process of how you can start with zero knowledge and no computer science background and master coding skills **for FREE** by following online resources and self study
4-
5-
![11 Step Process To Learn Programming](11_steps_learn_programming.png)
3+
Below is the step by step process of how you can start with zero knowledge and no computer science background and master coding skills **for FREE** by following online resources and self study
64

5+
Week 1 & 2
6+
==========
77

8-
### Step 1. Understand principals of effective learning
8+
### 1. Understand principals of effective learning
99

1010
Please watch this video to understand how you can learn effectively so that you can get maximum output by investing minimum amount of time.
1111

12-
https://www.youtube.com/watch?v=ZVO8Wt_PCgE
13-
14-
Quick summary of this video is in the image below,
15-
16-
![Effective Learning](nishant_effective_learning.png)
17-
18-
Here nishant talks about spending less time in input (which is watching coding tutorials, reading programming books etc) and spending more time in reflecting, practicing coding problems and sharing with your friends.
19-
20-
### Step 2. What is Code?
21-
22-
At this step you want to understand what exactly is code. It is a language that you use to communicate with the computer (hence it is called programming ***language***). This video goes elaborates what exactly is code.
23-
24-
https://www.youtube.com/watch?v=hYws-CDXA7k
12+
https://www.youtube.com/watch?v=yZFrSDjRvjk
2513

26-
### Step 3. Computer Science Principals
14+
### 2. Computer Science Principals
2715

28-
Program or code runs on a computer and uses CPU,RAM, input/output devices. This khan academy course goes over all these basic principals of computer science. Data is stored as bits (1s and 0s) in RAM and disk. The course will also go over fundamentals of binary numbers.
16+
Program or code runs on a computer and uses CPU,RAM, input/output devices. This khan academy course goes over all these basic principals of computer science. Data is stored as bits (1s and 0s) in RAM and disk. The course will also go over fundamentals of binary numbers. **In this course only follow first 4 sections (1) Digital Information (2) The Internet (3) Programming (4) Algorithms** Completing remaining sections is optional and do it if you have time and interest.
2917

3018
https://www.khanacademy.org/computing/ap-computer-science-principles/computers-101
3119

32-
### Step 4. Choose Career Track
20+
Week 3 & 4
21+
==========
22+
23+
### 3. Choose Career Track
3324

3425
Being programmer is like being a doctor where there are many different specializations. Doctor can be a heart specialist, a lung doctor
3526
or a general physician. Similarly you can become a web programmer, mobile app developer or backend developer. Here I have outlined
@@ -51,13 +42,13 @@ few popular career tracks along with programming languages required for that par
5142
1. JAVA
5243

5344

54-
### Step 5. Level 1 Coding Tutorials
45+
### 4. Level 1 Coding Tutorials
5546

5647
At this stage you are ready to write your first program and explore coding tutorials. The idea is to get basic understanding
5748
of programming such as variables, data types, file operation, writing static web pages etc. Below is information on courses
5849
based on career track,
5950

60-
##### 5.1. Web and mobile app development
51+
##### 4.1. Web and mobile app development
6152

6253
Here are the links of html/css courses. For codecademy you can create free account and get access of 180 hr
6354
of content per month. All courses listed below are free.
@@ -66,7 +57,7 @@ https://www.khanacademy.org/computing/computer-programming/html-css
6657
https://www.codecademy.com/learn/learn-html
6758
https://www.codecademy.com/learn/learn-css
6859

69-
##### 5.2. Data Science, machine learning, backend development
60+
##### 4.2. Data Science, machine learning, backend development
7061

7162
For python, I've build a tutorial playlist for absolute beginners. Watch **first 14**
7263
tutorails from this playlist. Remaining you can watch at step # 9
@@ -80,7 +71,10 @@ Python hindi tutorials: https://www.youtube.com/playlist?list=PLPbgcxheSpE1DJKfd
8071
I've many interesting exercises and their solutions at this place: https://github.com/codebasics/py/tree/master/Basics/Hindi
8172
(The folder name is hindi but exercise is for both hindi and english tutorials)
8273

83-
### Step 6. Debugging skills
74+
Week 5 & 6
75+
==========
76+
77+
### 5. Debugging skills
8478

8579
All right, at this stage now you have practiced some basic programming. It is time now to develop debuggin skills.
8680
You can not become a good programmer without sound debugging skills, period. Especially in the early stage
@@ -93,15 +87,19 @@ Debugging tips playlist: https://www.youtube.com/playlist?list=PLeo1K3hjS3uu-0i4
9387

9488
Debugging in chrome: https://www.youtube.com/watch?v=H0XScE08hy8
9589

96-
### Step 7. Data Structures
90+
### 6. Data Structures
9791

9892
There is not a single programming interview where they don't ask about data structures. Data structures are
9993
fundamental building blocks of any program (doesn't matter which programming language). Follow this playlist
10094
to get your data structure concepts clear.
10195

10296
Data structures playlist: https://www.youtube.com/playlist?list=PLeo1K3hjS3uu_n_a__MI_KktGTLYopZ12
10397

104-
### Step 8. SQL Basics
98+
99+
Week 7 & 8
100+
==========
101+
102+
### 7. SQL Basics
105103

106104
Doesn't matter which career track you choose, you need to have good understanding of relational databases
107105
and SQL (structured query language). Here are some course links for SQL.
@@ -112,31 +110,67 @@ Kudavenkat SQL playlist (watch first 12 videos): https://www.youtube.com/playlis
112110
For kudavenkat playlist above, if you are interested in going little more deeper into SQL then you can
113111
watch tutorials beyond # 12.
114112

115-
### Step 9. Level 2 Coding Tutorials
113+
Week 9 & 10
114+
===========
115+
116+
### 8. Level 2 Coding Tutorials
116117

117118
At this stage, now you know some basic coding, data structures, SQL etc. You can now go through intermediate
118119
coding tutorials. Here are some online resources for the same,
119120

120-
##### 9.1 Python
121+
##### 8.1 Python
121122

122-
Codebasics python tutorials (tutorial # 15 and onwards): https://www.youtube.com/playlist?list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0
123+
Codebasics python tutorials (tutorial # 15 to # 27): https://www.youtube.com/playlist?list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0
123124

124-
##### 9.2 Web and mobile app development
125+
##### 8.2 Web and mobile app development
125126

126127
Interactive weg pages: https://www.khanacademy.org/computing/computer-programming/html-css-js
127128
JQuery: https://www.khanacademy.org/computing/computer-programming/html-js-jquery
128129

129-
### Step 10. Algorithms
130+
Week 11 & 12
131+
============
132+
133+
### 9. Algorithms
130134

131135
Algorithms are applicable to any programming language. Understanding algorithms will help you evaluate
132136
inner working of your program, performance measurement using Big O complexity etc.
133137

134138
https://www.khanacademy.org/computing/computer-science/algorithms
135139

140+
Codebasics algorithm videos (Video # 13 onwards) https://www.youtube.com/playlist?list=PLeo1K3hjS3uu_n_a__MI_KktGTLYopZ12
136141

137-
### Step 11. Projects, Projects, Projects
142+
Next 3 months
143+
=============
144+
145+
### 10. Projects
138146

139147
Throughout your journey of step 1 to 11, you need to adhere to a principal of **project based learning**
140148
Which means have a project and then learn each of the skills required to finish that project step by step.
141149
Once you finished one project move onto another. As you work on more projects you will learn new skills
142150
and become better and better at programming
151+
152+
Codebasics Python Projects: https://www.youtube.com/playlist?list=PLeo1K3hjS3usVcPj6osMx1tNkARllcRhZ
153+
154+
Here is the summary of this step by step process.
155+
156+
![11 Step Process To Learn Programming](11_steps_learn_programming.png)
157+
158+
159+
Useful Resources & Tips
160+
=======================
161+
162+
### Group Study
163+
164+
Group study is always better than studying alone. If you know someone who wants to learn coding as well then make a group and start studying together. Also hold each other accountable and discuss learning milestones with each other. You can join codebasics discord server to find partners for group study.
165+
166+
Discord link: https://discord.gg/r42Kbuk <-- On this you will find a partner finder channel where you can find similar minded people with whom you can do a group study
167+
168+
#### Following discipline and not giving up
169+
170+
Learning coding, especially when you are new, can get frustrating at times. Every good programmer has gone through this pain so if you are facing issues, don't start thinking you are not smart and coding is not your thing. You need to have lot of patience. When you come from non coding background, thinking in terms of coding is a big shift in the mind paradigm hence it can take some time before it starts clicking you.
171+
172+
173+
174+
175+
176+

0 commit comments

Comments
 (0)