delightful python
dipping your toe into
python
what is python?
what is python?
• general purpose
• open source
• object oriented and functional
• interpreted and interactive
• cross-pla...
dipping your toe into
python
what makes python great?
what makes python great?

➡lucidity
★

clear to read and write

★

concise without being cryptic

★

clean code
C
#include<stdio.h>
int main()
{
printf("Hello World!n");
return 0;
};

63 characters and 6 lines!
}
C++
#include<iostream>
using namespace std;
int main()
{
cout<< "Hello World!n";
return 0;
}

comes in at around 81 charac...
Java
import java.io.*;
public class Helloworld
{
public static void main(String[] args)
{
System.out.println("Hello World!...
Python
print("Hello World")
Comes in at a measly 20 characters
and 1 line
what makes python great?

➡comes batteries-included!
★

has comprehensive support for
routine acts in the form of modules
...
what makes python great?

➡incredible support
★

lots and lots of documentation

★

better yet! you have the interpreter,
...
what makes python great?

➡fantastic datatypes and dynamically typed
★

list

★

tuple

★

set

★

dictionary

★

string, ...
datatype example
•
•

roll={10583: "Pratheek"}

•
•
•
•

name= "Pratheek Adidela"

sportplayed={badminton, tennis, badmint...
let’s dig into the delicious
realm of string parsing
NLTK
what’s the catch?
what’s the catch?
• how can python be so easy and so great?
there needs to be some catch, right?

SPEED

slower than C, bu...
what if i wanted the
brevity of python with
the swiftness of C?
what if i wanted the
brevity of python with
the swiftness of C?

YES!
who exactly uses
python?
questions!?!?
pythonthanks!
is awesome!
thanks!
Upcoming SlideShare
Loading in …5
×

Python Introduction

341 views
233 views

Published on

Introduction to python programming and NLTK

Published in: Career, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
341
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Python Introduction

  1. 1. delightful python
  2. 2. dipping your toe into python what is python?
  3. 3. what is python? • general purpose • open source • object oriented and functional • interpreted and interactive • cross-platform • portable • sociable and outgoing
  4. 4. dipping your toe into python what makes python great?
  5. 5. what makes python great? ➡lucidity ★ clear to read and write ★ concise without being cryptic ★ clean code
  6. 6. C #include<stdio.h> int main() { printf("Hello World!n"); return 0; }; 63 characters and 6 lines! }
  7. 7. C++ #include<iostream> using namespace std; int main() { cout<< "Hello World!n"; return 0; } comes in at around 81 characters and 7 lines!
  8. 8. Java import java.io.*; public class Helloworld { public static void main(String[] args) { System.out.println("Hello World!"); } } comes in at a hefty 115 characters and 8 lines!
  9. 9. Python print("Hello World") Comes in at a measly 20 characters and 1 line
  10. 10. what makes python great? ➡comes batteries-included! ★ has comprehensive support for routine acts in the form of modules ★ pythonic principle-don’t reinvent the wheel
  11. 11. what makes python great? ➡incredible support ★ lots and lots of documentation ★ better yet! you have the interpreter, the magic word being help(name) ★ in python, you have an ever-present help!
  12. 12. what makes python great? ➡fantastic datatypes and dynamically typed ★ list ★ tuple ★ set ★ dictionary ★ string, int, float
  13. 13. datatype example • • roll={10583: "Pratheek"} • • • • name= "Pratheek Adidela" sportplayed={badminton, tennis, badminton, cricket, tennis, cricket} phone=8091340241 Student=(name, roll, phone, sportplayed) AllStudents is a list of tuples, each of which consists of a string, dictionary, integer and set
  14. 14. let’s dig into the delicious realm of string parsing NLTK
  15. 15. what’s the catch?
  16. 16. what’s the catch? • how can python be so easy and so great? there needs to be some catch, right? SPEED slower than C, but comparable to Java
  17. 17. what if i wanted the brevity of python with the swiftness of C?
  18. 18. what if i wanted the brevity of python with the swiftness of C? YES!
  19. 19. who exactly uses python?
  20. 20. questions!?!?
  21. 21. pythonthanks! is awesome! thanks!

×