Basics of Python

10
Beginning and simulation in Python June 17, 2015 Python June 17, 2015 1 / 10

description

Basic Course in Python Lecture Slides

Transcript of Basics of Python

BeginningandsimulationinPythonJune17,2015Python June17,2015 1/10Outline1BasicSyntaxEquivalents2SimulationPython June17,2015 2/10ifif(condition):bodyelse:bodyPython June17,2015 3/10forforiinrange(0,n):bodyPython June17,2015 4/10whilewhile(i < n):bodyincrementingiPython June17,2015 5/10Functiondeffunction():bodyreturn()Python June17,2015 6/10classclassabc(object):bodyPython June17,2015 7/10instanceofaclassobj=abc()Python June17,2015 8/10Outline1BasicSyntaxEquivalents2SimulationPython June17,2015 9/10SimulationacomputerprogramthatcreatesavirtualenvironmentinordertostudyphysicalproblemsPython June17,2015 10/10