Welcome To
Statements


Python Statements

The python statement is a set of instruction that should executed by python interpreter . In python code every single line of code is called statements .For Example print() statement break statements , if statements , loop statements etc

Each statements in python can executed by python interpreter . The python having the two types of statements simple statements and multiline or compound statements

simple Statements

The python having a simple statement which means a line of code that should be executed by python interpreter. Examples in the below

Examples

x=10 #initial statement

print()# output statement

x+y # operator statement

Compound Statements

The python having the multiline statements means having tha controls like if statement, for loop statements , break statements and other. Examples in the below

Examples

if x>y:
{
print("x is greater then y")
}
Else
{
print("x is less then y")
}

for i in range(1,10):
{
print(i)
}