Professional Documents
Culture Documents
ISE233 Lecture 4
ISE233 Lecture 4
ISE233 Lecture 4
Industrial Systems
(Lecture 4)
Why Python ?
• Open source, high level script language
✓ Rich libraries
✓ Easy to learn
• In particular good for ISE professionals, such as Numpy, scipy, statistics, optimization,
sklearn, computation libraries
• Import packages
✓ Import package after installation so that functions in the package can used
• In order for a function to run, it must be called into action. A function will not run by itself
Basic Python Operations and Concepts - Loop
• For Loop
✓ used to iterate over elements of a sequence, it is often used when you have a piece of
code which you want to repeat "n" number of time.
✓ It works like this: " for all elements in a list, do this”
• While Loop
✓ The while loop tells the computer to do something as long as the condition is met
✓ it's construct consists of a block of code and a condition.
✓ It works like this: " while this is true, do this "