Single Line Python Code for Calculator
Hello dudes! Inaiku nama pakaporadhu - Single line python code for calculator" IDE : Visual Studio Code Input: print(eval(input ("Enter" ) ) ) ->eval() is an inbuilt function of python ->In this function when we pass any python expression as a “string” , it evaluates the expression and returns the result as an integer or float -> so indha inbuilt function ah use pani nama single line la calculator pana mudiyum Output: -> Input code ah run panitu, direct ah terminal la poi nama calculations potu enter thandha udane answer vandhurum -> Here we gave 2+3/4*6 and got 6.5 as result -> Ethana mathematical expressions thandhalum BODMAS ( Brackets, Orders, Division, Multiplication, Addition and Subtraction ) rules padi dhan result varum So inike indha code try panunga, eval() use pani vera enalam pana mudiyum nu explore panitu comment la solunga! see you all in next post bybye Enjoy Coding!