O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Python programming lab1

313 visualizações

Publicada em

Python Programming - Basics

Publicada em: Educação
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Python programming lab1

  1. 1. Prof B N Kshirsagar MIT Group , Aurangabad , MS, India
  2. 2. FOUNDER Python is powerful... and fast; plays well with others; runs everywhere; is friendly & easy to learn; is Open. These are some of the reasons people who use Python would rather not use anything else
  3. 3. Use Python for… WebProgramming: Django, Pyramid, Bottle, Tornado, Fl ask,web2py GUI Development: wxPython, tkInter, PyGtk, PyQt Scientific and Numeric: SciPy, Pandas, IPython Software Development: Buildbot, Trac, Roundup System Administration: Ansible, Salt, OpenStack
  4. 4. www.python.org For Linux machine, python is , in general, preloaded Just Type $ python You will have “>>>” prompt for python shell For other machines, Download and Install at your machine, from python.org
  5. 5. First program >>>print “Hello World !” Hello World !
  6. 6. Second program >>>x = 10 >>>y = 20 >>>z = x + y >>> print z 30
  7. 7. Third program >>>exam_fees = 10000 >>>service_tax = exam_fees * 12.36 / 100 >>>total_fees = exam_fees + service_tax >>> print total_fees 11236
  8. 8. Thanks

×