Programming%20in%20Python-1717521959215
Programming%20in%20Python-1717521959215
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
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
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
case sensitive