Skip to content

harshitahluwalia7895/30-Days-of-Python

Repository files navigation

30 Days of Python || Unlock your Python Potential(This May)

By Harshit Ahluwalia

alt_text
link to follow me

  • Telegram
  • instagram
  • Github
  • Linkedin
  • Youtube

Description about the course

In early 2016, Python passed Java as the #1 beginners language in the world. Why? It's because it's simple enough for beginners yet advanced enough for the pros.

SpaceX uses it to launch Rockets

Pixar uses Python to run their animation software

Instagram & Pinterest use it to run their web application (backend via Django)

Come learn with me and I'll show you how you can bend Python to your will. This course is great for beginners in Python at any age and any level of computer literacy.

The goal is simple: learn Python by building real projects step-by-step while we explain every concept along the way. For the next 30 Days you're going to learn how to:

  • Scrape Data from nearly Any Website (including javascript-enabled sites)
  • Build your own Python applications for all types of automation
  • Send Emails & SMS text messages to your friends our your customers
  • Read & Write CSV, aka comma separated values, files to better store your data locally and work in popular programs like Microsoft Excel and Apple Numbers
  • Understand the basics behind the Python programming language so you're ready to build more advanced projects like Web Applications
What you’ll learn
  • Understand the Basics of Python
  • Build Applications using Python
  • Send Emails with Python
  • Scrape Websites with Python to pull data
  • Scrape dynamic-loaded (javascript-loaded) Websites with Python
  • Read and Parse emails using Python
  • Read / Write CSV (comma separated values) files to work in Excel/Numbers
  • Use the Twitter API to send tweets easily through a few lines of code
  • Use the Yelp API to pull data about all businesses they have on their site
Who this course is for
  • Entrepreneurs and Non-Technical Founders
  • Anyone interested in learning Python
  • Beginners
  • Growth Hackers
  • Anyone interested in learning how to Scrape Websites for data/big data analysis
  • Anyone interested in Automating Email on their own terms

Table to content for 30 Days


1. Welcome to the course
2.Basics(Strings and integers)
3.Lists,Tuples,Dictionaries
4.Conditionals
5.Functions
6.Advanced Strings
7.Classes - Part I
8.Classes - Part II
9.Classes - part III

Python CSV,and Email | Do Something Real

10.Setup Python to send and email with gmail
11.HTML and Plain Text Emails through Python and Gmail
12.Send Formatted Emails to a Set of Users
13.Using External Template Files with Context Data in Python
14.CSV Files with Python - Read, Write, & Append
15.Functions to Dynamically Add Data to CSV with Python
16.Edit CSV with Python Part 1
17.Edit CSV with Python Part 2
18.Running Python Commands & Arguments in Terminal
19.Integrating Part 1
20.Integrating Part 2

Web Scraping with Python

21.Web Scraping with Python3 Python Requests & BeautifulSoup
22.Web Scraping Part 2
23.Web Scraping Part 3
24.Web Scraping Part 4
Web Scraping on Javascript Driven HTML

25.Part 1 | Web Scraping on Javascript-Driven HTML using Python + Part 2 | Web Scraping on Javascript-Driven HTML using Python
Get Data with an API

26.Part 1 | Get Data with an API + Part 2 | Get Data with an API
TextMessaging (SMS/MMS) with Python

27.Sending SMS Messages with Python & Twilio Part 1 + Part 2 - SMS Messages with Python & Twilio
28.Twilio Python Client & SMS

Twitter API & Python

29.Twitter API with Python & python-twitter
Read Email Inbox using Python & Gmail

30.Login with IMAP
- Fetch & Convert Email
- Save Emails Locally

Day 1 - Welcome to the Course

alt_text

What is Python ?


Python is currently one of my favorite and most preferred language to work on because of its simple text, powerful libraries(which has been used in Machine Learning), and readability . You may be an old school coder or may be completely new to programming, Python is the best way to get started!.
Python provides features listed below :
1. Simplicity: Think less of the syntax of the language and more of the code.
2. Open Source: A powerful language and it is free for everyone to use and alter as needed.
3. Portability: Python code can be shared and it would work the same way it was intended to. Seamless and hassle-free.
4. Being Embeddable & Extensible: Python can have snippets of other languages inside it to perform certain functions.
5. Being Interpreted: The worries of large memory tasks and other heavy CPU tasks are taken care of by Python itself leaving you to worry only about coding.
6. Huge amount of libraries: Data Science? Python has you covered. Web Development? Python still has you covered.
7. Object Orientation: Objects help breaking-down complex real-life problems into such that they can be coded and solved to obtain solutions.

Python Interpreter


An interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program. So unlike Java, Python uses an interpreter.

The interpreter is a program that we need to run our python code or scripts. It basically provides an interface between the code and the computer hardware to get the results of the code.
No matter in which programming language the code is written, it goes through an interpreter when it comes to python. For example pypy is used to execute the code written in python.

Python 3 Installation & Setup Guide

alt_text
To get started working with Python 3, you’ll need to have access to the Python interpreter. There are several common ways to accomplish this:

  1. Python can be obtained from the Python Software Foundation website at python.org. Typically, that involves downloading the appropriate installer for your operating system and running it on your machine.
  2. Some operating systems, notably Linux, provide a package manager that can be run to install Python.
  3. On macOS, the best way to install Python 3 involves installing a package manager called Homebrew. You’ll see how to do this in the relevant section in the tutorial.
  4. On mobile operating systems like Android and iOS, you can install apps that provide a Python programming environment. This can be a great way to practice your coding skills on the go.

Windows


It is highly unlikely that your Windows system shipped with Python already installed. Windows systems typically do not. Fortunately, installing does not involve much more than downloading the Python installer from the python.org website and running it. Let’s take a look at how to install Python 3 on Windows:
Step 1 : Download the Python 3 Installer
1. Open a browser window and navigate to the Download page for Windows at python.org.
2. Underneath the heading at the top that says Python Releases for Windows, click on the link for the Latest Python 3 Release Python 3.x.x. (As of this writing, the latest is Python 3.6.5.)
3. Scroll to the bottom and select either Windows x86-64 executable installer for 64-bit or Windows x86 executable installer for 32-bit.

Step 2: Run the Installer
Once you have chosen and downloaded an installer, simply run it by double-clicking on the downloaded file. A dialog should appear that looks something like this:
alt_text

Online Python Interpreters


If you want to try out the examples in this tutorial without installing Python on your machine, there are several web sites available where you can interact with a Python interpreter online:
1. Python.org Online Console: www.python.org/shell
2. Python Fiddle: www.pythonfiddle.com
3. Repl.it: www.repl.it
4. Trinket: www.trinket.io
5. Python Anywhere: www.pythonanywhere.com

These cloud-based Python interpreters may not be able to execute some of the more complex examples in this tutorial, but they will be adequate for running most of the simpler ones and may be a nice way to get you started. More information on using these sites is presented in the next section.

alt_text

alt_text

Here in this course we will be using Jupyer Notebook.

About Jupyter Notebook

  1. Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. Uses include data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.
  2. Jupyter has support for over 40 different programming languages and Python is one of them. Python is a requirement (Python 3.3 or greater, or Python 2.7) for installing the Jupyter Notebook itself.

Jupyter Notebook can be installed by using either of the two ways described below: content taken from GeeksforGeeks

Using Anaconda

Install Python and Jupyter using the Anaconda Distribution, which includes Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science. To install Anaconda, go through How to install Anaconda on windows? and follow the instructions provided.

Using PIP

Install Jupyter using the PIP package manager used to install and manage software packages/libraries written in Python. To install pip, go through How to install PIP on Windows? and follow the instructions provided.

Installing Jupyter Notebook using Anaconda:

Anaconda is an open-source software that contains Jupyter, spyder, etc that are used for large data processing, data analytics, heavy scientific computing. Anaconda works for R and python programming language. Spyder(sub-application of Anaconda) is used for python. Opencv for python will work in spyder. Package versions are managed by the package management system called conda.

To install Jupyter using Anaconda, just go through the following instructions:
Launch Anaconda Navigator:
alt_text
Click on the Install Jupyter Notebook Button:
alt_text
Beginning the Installation:
alt_text
Loading Packages:
alt_text
Finished Installation:
alt_text
Launching Jupyter:
alt_text alt_text

now, please acces these file for Day 2

  • Keywords and Identifiers
  • Comments and identation
  • Operators in python
  • Variables
  • standard input and Output

alt_text

alt_text

  • Lists
  • Tuples Part 1
  • Tuples Part 2
  • Sets
  • Dictionaries

alt_text

alt_text

  • if-else
  • While Loop
  • For Loops
  • Break and Continue

Stay Tuned for Day 5

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published