x = 5 y = "5" print(x == y) The output of the code is False . This is because x is an integer and y is a string, even though they have the same value.
Conditional statements are used to execute different blocks of code based on conditions. The if statement checks a condition, and if it's true, executes the corresponding block of code. The elif statement checks another condition if the initial condition is false. The else statement executes a block of code if all conditions are false. Exercise 4: Loops Question: What is the output of the following code?
def greet(name): print("Hello, " + name + "!")