Python Basics: Statements Expressions Loops Strings Functions
Python basics
12
Basics of Python Programming Rohan Koodli
Transcript of Python basics
Variables l Variables can change
l Can be number, string, list
l Individual variables can change types(unlike other languages)
Loops l While Loops
l Executes a task while something is true
l For Loops l Iterates over elements
Prints ‘hi’ forever (1 is always less than 5