Posted On: Feb 22, 2018
Python has an interesting philosophy using the ternary operator. It has no ternary operation syntax. Python uses if else statement to perform the action.
print("Equal") if 5==5 else print("Not equal") 5!=5 and 'Equal' or 'Not equal'
Never Miss an Articles from us.
Python uses its own techniques to implement exception handling. <try-except> is the block that can be utilized by..