An if-else clause The true or false value of an expression is determined by a Python statement. The “if” statement is executed if a condition is true. If not, the “else” statement is executed. If statements in Python enable programmers to manage the flow of their programming.

You can create a chain of if statements using the if/else if statement. The if statements are evaluated one after the other until one of them if expressions are true or the if/else if chain ends. If there is no true expression at the end of the if/else if chain, no code blocks are executed.

When you have a block of code that you want to repeat a certain number of times, you use a for a loop. The for the statement in Python iterates through the members of a sequence, executing the block each time. By using for loop we have executed the python program to find prime numbers between a given range

```
def prime(x, y):
prime_no = []
for i in range(x, y):
if i == 0 or i == 1:
continue
else:
for j in range(2, int(i/2)+1):
if i % j == 0:
break
else:
prime_no.append(i)
return prime_no
initial = 10
final = 50
lst = prime(initial, final)
if len(lst) == 0:
print("No Prime Number")
else:
print("Prime Numbers Are ", lst)
```

Output:

Prime Numbers Are [11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47]

Python Program to Calculate Area of Circle Using Function

Python Program to Calculate Compound Interest

Program to Find Simple Interest in Python

Maximum of Two Numbers in Python Using Function

C Program to Find Armstrong Number Using Recursion

Linear Search in C Program Using Array

Insertion Sort Program in C Using Array

Bubble Sort Program in C Using Function