Python Notes

Powerful Essays
Programming with Python
Chapter One
Introducing Python * Powerful yet easy to use programming language * Developed by Guido van Rossum * First released in 1991 * Named after comedy troupe Monty Python * An alarming number of references to spam, eggs, and the number 42 in documentation

Why Python? It’s Easy to Use

* High-level language: Distinct from the low-level processor operations; closer to human language than machine language * "Programming at the speed of thought" * Increases productivity * Python programs three to five times shorter than Java * Python programs five to ten times shorter than C++ * Normally, “Programming is like making fine furniture with an axe and a nail file.” * Python makes it more like working with a table saw & a lathe * You still have to learn how to use them, but they’re the right tools for the job

Python Is Easy to Use

* Python Program print "Game Over!" * C++ Program
#include <iostream> int main()
{
std::cout << "Game Over!" << std::endl; return 0;
}

Python Is Powerful

* Used by large organizations * NASA * Google * Microsoft * Used in published games * Battlefield 2 * Civilization IV * Disney’s Toontown Online * Used throughout academia and the scientific community

Python Is Object-Oriented

* Object-oriented programming (OOP): Methodology that defines problems in terms of objects that send messages to each other * In a game, a Missile object could send a Ship object a message to Explode * OOP not required, unlike Java and C#

Python Is a “Glue” Language

* Can be integrated with other languages * C/C++ * Java * Use existing code * Leverage strengths of other languages * Extra speed that C or C++ offers

Python Runs Everywhere

* Platform independent: Independent of the specific computer

You May Also Find These Documents Helpful

  • Good Essays

    Python

    • 100819 Words
    • 404 Pages

    Python Programming: An Introduction to Computer Science John M. Zelle, Ph.D. Version 1.0rc2 Fall 2002 Copyright c 2002 by John M. Zelle All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without prior written permission of the author. A This document was prepared with L TEX 2ε and reproduced by Wartburg College Printing Services.…

    • 100819 Words
    • 404 Pages
    Good Essays
  • Satisfactory Essays

    Something else he achieved was slaying the serpent Python which guarded the oracular shrine of Delphoi (Delphi). Python was a monstrous dragon snake set by Gaia to guard the godly oracle.When Apollon laid claim to the shrine, he slayed Python with a burst of a hundred arrows. Apollo slew the monster to avenge his mother. Who had been many times pursued by the dragon during her long pregnancy.…

    • 68 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Burmese Pythons

    • 696 Words
    • 3 Pages

    Burmese Pythons Have you ever seen a Burmese Python? Well, they are beautiful animals, but also very dangerous. People are buying them as pets and turn them loose in Florida. There is going to be a big change in the local animals and the ecosystems. The pythons are very large animals. They can grow up to 20ft and can weight up to 200lbs.They are also having a python challenge. Whoever brings in the biggest or most pythons they could win up to 1,500$. This challenge is not safe because one of these…

    • 696 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Learning Python

    • 394110 Words
    • 1577 Pages

    Learning Python Download at WoweBook.Com Download at WoweBook.Com FOURTH EDITION Learning Python Mark Lutz Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Download at WoweBook.Com Learning Python, Fourth Edition by Mark Lutz Copyright © 2009 Mark Lutz. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business…

    • 394110 Words
    • 1577 Pages
    Satisfactory Essays
  • Good Essays

    Ball Python

    • 513 Words
    • 3 Pages

    Ball Python A ball python is one of the most obedient snakes, which is why it is the most common pet snake. The ball python is native Africa residing in forests, savannahs and grasslands. Ball pythons are active around dawn and dusk. The typically grow between four and five feet in length. Ball pythons are known for curling up tightly and burrowing. Burrowing allows these snakes to follow their prey, which includes small rodents. The ball python kills its prey by constricting them. The life…

    • 513 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Burmese Python

    • 199 Words
    • 1 Page

    Burmese pythons specifically the Python molurus bivittatus species are native to several countries in Southeast Asia. But through pet trade, they've found their way into Florida and Puerto Rico. The concern is that they'll overtake other native, smaller snakes. The state of Florida is all-out hunting these creatures down because they're a threat to small kids, pets and farm animals. Burmese python affects the environment in a bad way because it is forcing other animals out their habitat or it is…

    • 199 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Python Tutoral

    • 2043 Words
    • 9 Pages

    PYTHON - QUICK GUIDE http://www.tuto rialspo int.co m/pytho n/pytho n_quick_g uide .htm Co pyrig ht © tuto rials po int.co m PYTHON OVERVIEW: Python is a hig h-level, interpreted, interactive and object oriented-scripting lang uag e. Python is Interpreted Python is Interac tive Python is O bjec t-O riented Python is Beg inner's Lang uag e Python was developed by Guido van Rossum in the late eig hties and early nineties at the National Research Institute for Mathematics and Computer…

    • 2043 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Monty Python

    • 917 Words
    • 4 Pages

    1. Analyse the misguided reasoning that leads the villagers to conclude that the witch should be burnt in the Monty Python sketch. The 'Witch Scene', from Monty Python and the Holy Grail, follows some very illogical arguments. It is an argument that has gone very wrong from the beginning. In this particular scene, the villagers along with a knight, come up with an argument as to why the woman is a witch. The town's people say that she is a witch and should be burned. The knight uses his logic…

    • 917 Words
    • 4 Pages
    Good Essays
  • Good Essays

    A Quick Rundown of Python

    • 3980 Words
    • 16 Pages

    bare-minimum Python tutorial for this class. I'm subscribed by email and pretty free today, so I'll check back if anyone has any questions. I'm no pro, but I've been coding in Python recreationally for a couple years now (and I actually try to keep up with what actual pros are saying) so I have some idea what I'm doing. I did this assignment in a few hours, including at least 45 minutes of which was kludging my way around Unicode problems that I'm not used to dealing with because Python 3 wouldn't…

    • 3980 Words
    • 16 Pages
    Good Essays
  • Better Essays

    African Rock Python

    • 1814 Words
    • 8 Pages

    Zoology African Rock Python The African rock python. It is Domain: Eukarya. Domain is the highest taxonomic rank of organisms, higher than a kingdom. The African rock python falls under Eukarya because it is a multicellular organism composed of eukaryotic cells. It is Kingdom: Anamalia. Kingdom is the second highest rank. It falls under Anamalia for obvious reasons. It is Phylum: Chordata. Phylum is the primary division of the plant or animal kingdom. It is Class: Reptilia. Class is a group of…

    • 1814 Words
    • 8 Pages
    Better Essays