Fulltext results:
- operator_expressions
- $ print 'Numbers:', 1 + 1, -.5 + .5 Numbers: 2 0 $ print 'Larger than 32-bit:', \ 0xffffffffff + 0xffffffffff Larger than 32-bit: 2.19902e+12 $ print 'Text:', 'Hello' + 'World' Te... : d } $ print 'Time:', Time() + 3600 Time: 2019-11-19 22:56:53.514 ===== Subtraction ===== ... 5 - .5 Numbers: 0 -1 $ print 'Larger than 32-bit:', 0xffffffffff - 0xffffffffff Larger than 32-bit: 0 $ print '
- statements_and_compounds
- ill looping because 3 > 0 Still looping because 2 > 0 Still looping because 1 > 0 ==== break ==== The ''break'' statement is used to break out of loop... rint "Uh-oh, now I'm in trouble!" break 2 end end print "Whew" ==== for ==== ''... ining the key and the value. a = {'a': 1, 'b': 2} for i in a print i end Output: [ a
- functions
- sed in the end. def func1(): pass def func2() end The ''return'' statement is used to retu... def func5(a, b, c) Default values can be included. def func5(a, b='default', c=100) When calling a function, all arguments must have values. Argument names can always be included in