Important function in python and Miscellaneous
1==1.0 is True but 0.1+0.2==0.3 is False while(true): continue if ,break ,try,except exception as e \n print(e/customized error) except executes after a error occurs in try # try may/may not be printed completely exception can be specified : except namerror:,except typerror:, valuerror:,zerodivisionerror raise error-type("error statement") else: gets executed if try was succcessful and no break statement finally: gets executed irrespective of error __name__ == __main__ by default or name of module used import filename , filename.funcname , from filename import variablename(or)* global (used inside function) works on whole variable and can change its value global- used at top of prog , defined var can be used anywhere local -used inside a func to use that var in the func only enumerate(iterable) # add counter to an iterable and returns it.Syntax == for index,item in enumerate(iterable) list/set/dict comprehension == a=[1,2,5,1128938,3198,993,8589] # b=[] """ ...