PYTHON
THE COMPLETE COURSE
ARTIFICIAL
INTELLIGENCE &
MACHINE LEARNING
CODE IN PYTHON
PRESENTED BY:
ATHARVA PANDEY
010001011110111010011
Why programming language?
Machines understand 0 and 1 but
writing 0 & 1 not at all human friendly
hence we need programming
languages
Interpreter? - Translator
Python usually uses interpreter, goes
through code line by line and converts
it to machine code
compiler? - Translator
Take your code all at once and
translates it to machine code
PYTHON INTERPRETER
Python code --> Interpreter --> line
by line --> byte code --> runs on
cpython vm --> runs on our PC
Download from https://python.org
Every system is different hence installation might differ
You need to install python v3
To check installation on everyones PC is beyond the Scope of
online class
WHAT WE WILL NEED?
IDE
Code editor
Terminal Jupyter
QUICK START
https://replit.com
https://glot.io
WHY 2 DIFFERENT PYTHONS?
DO WE NEED TO RELEARN
Python 2 Python 3
https://www.datacamp.com/blog/pyt
hon-2-vs-3-everything-you-need-to-
know
EXERCIZE - HELP EACH OTHER TO INSTALL PYTHON3
LOCALLY
LEARNING AS NEWB
Learn the basic terminologies so that you
can communicate with others
Learn about datatypes, what sort of data
can a program hold- eg: number, letter,
symbol
Actions - Store data retrieve data and
perform actions
Learning best practices
THIS ALL YOU NEED TO BECOME A GOOD
PYTHON PROGRAMMER
MORE RESOURCES
https://www.youtube.com/watch?
v=PZRI1IfStY0
Understand floating point numbers
Math Functions
https://www.programiz.com/python-
programming/modules/math
Developer Fundamentals
Don’t read dictionary - learn to google
Use the language - somethings are used
more then others
We will learn important topics
But learn the language as a tool to do the
task you don;t really need to memorize
everything but develop problem solving
ability
Do write comments - *in good ways* add
valuable comments
You should be aware when to use what
data structure
VARIABLES BEST
PRACTICES
snake_case
starts with lowercase or _
letters numbers underscore
case sensitive
don’t overwrite keywords
Resources
https://www.geeksforgeeks.org/python-int-function/
https://www.w3schools.com/python/python_ref_keywords.asp
https://realpython.com/python-comments-guide/
https://www.w3schools.com/python/python_ref_list.asp
https://www.w3schools.com/python/python_ref_keywords.asp
https://www.w3schools.com/python/python_ref_set.asp