for and if in python code example

Example 1: for in javascript

const object = {a: 1, b: 2, c: 3};

for (const property in object) {
  console.log(`${property}: ${object[property]}`);
}

// expected output:
// "a: 1"
// "b: 2"
// "c: 3"

Example 2: python if and

if foo == 'abc' and bar == 'bac' or zoo == '123':
  # do something

Example 3: if and in java

if(x == 1 && y == 2){
  println("x = 1 and y = 2");
}

Example 4: or in if statement python

weather == "Good!" or weather == "Great!": 

# Or the following  

weather in ("Good!", "Great!"):