Features of Python
Let us take a closer look at some of the salient features of Python. 1. Enhanced Readability In Python, uniform indents are used to delimit blocks of statements instead of curly brackets like in C, C++ and Java. This enhances readability. In C, C++, Java if (X%2==0) { if (x%3==0) System.out.println("divisible by 2 and 3"); else System.out.println("divisible by 2 not divisible by 3"); } else { if (x%3==0) System.out.println("divisible by 3 not divisible by 2"); else System.out.println("not divisible by 3 nor by 2"); } In Python if num%2 == 0: if num%3 == 0: print ("Divisible by 3 and 2") else: print ("Divisible by 2 not divisible by 3") else: if num%3 == 0: print ("Divisible by 3 not divisible by 2") else: ...