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
The python having a simple statement which means a line of code that should be executed by python interpreter. Examples in the below
x=10 #initial statement
print()# output statement
x+y # operator statement
The python having the multiline statements means having tha controls like if statement, for loop statements , break statements and other. Examples in the below
if x>y:
{
print("x is greater then y")
}
Else
{
print("x is less then y")
}
for i in range(1,10):
{
print(i)
}