Python, Python Programming, Data Science, Coding, Data Analysis.
range(10): if x%2 == 0: print("{} is an even number".format(x)) else: print("{} is an odd number".format(x)) In Python, indentation is mandatory. For example, in the above code if you write the if statement exactly below the for loop, then the Python code will throw an indentation error. Due to