@MMarahatta

@Prt_X

PYTHON

...one snake to rule them all

Objectives of today’s lecture

  • Introduction to basic programming

     
  • Begin using Python programming language

 

Programming?

bossing your machine to do stuffs you want to get done

Terms to know

  • Data
  • Algorithm
  • Program
  • Programming language
  • Execution
  • Compiler
  • Interpreter

So What is PYTHON?

Programming Language duh!!...

History

Guido Van Rossum -1991

Why/How is it so powerful??

Why??

  • High-level Programming Language

  • Beginner friendly

  • Code Readability

  • Broad

Installation

192.168.1.39:8000
1. Open Your Browser and goto
2. Goto Softwares and Utilities
- If you have 2 GB or more RAM download 
the x64 bit version i.e Sublime 3126x64 and Python amd64

- If not download x86_64(32) bit
version i.e Sublime 3126 and Python

Hoorah!! 

You've successfully installed Snake(well vetted) on your system

Let's Run Python

- Goto run(win+r) 
- Type cmd and hit enter
Command Prompt Opens
- Type python and hit enter
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
This thing pops up(Interpreter)

Hello World in C

Hello World in C++

Hello World in Java

Hello World in Python

>>> print("Hello world")
Hello world

Executing Single Statements

>>> 2+3
5

>>> 5-3
2

>>> 5*3
15

>>> 22/7
3.142857142857143

>>> 3**2
9

>>> 5%3
2

Text Editors

Questions???

Thank You

CHEERS

Made with Slides.com