To How Python Or In
In python string literals, backslash is an break out individual. that is additionally proper when the interactive activate indicates you the fee of a string. it'll come up with the literal code illustration of the string. use the print statement to see what the string sincerely looks like. this situation shows the difference: >>> '\' '\' >>> print '\' . The elif announcement allows you to test multiple expressions for actual and execute a block of code as quickly as one of the conditions evaluates to genuine. ! /usr/bin/python var = 100 if var == 2 hundred: print "1 got a real expression price" print var elif var == 150: print "2 got a true expression fee. Calculate exponent in python. in math, the exponent is referred to the number of times a number is extended with the aid of itself. as an instance, 4^ 3. in this case, the exponent can be four * 4 * four = 64 in python, you may use special ways for calculating the exponents