Introduction to Python Statements
Python vs Other Languages
Let's create a simple statement that says: "If a is greater than b, assign 2 to a and 4 to b"
Take a look at these two if statements (we will learn about building out if statements soon).
Version 1 (Other Languages)
if (a>b){
a = 2;
b = 4;
}
Version 2 (Python)
if a>b:
a = 2
b = 4
It's good
ReplyDelete