# exp1.py3 first example simple output integer, string, double # note # makes rest of line a comment i = 7 # declare variable i with initial value 7 ac = 'a' # single character no type required msg = "sample string" # declare msg with string in quotes x = 37.95 # declare floating point x with initial value y = 127.34e10 # declare double precision with initial value print("exp1.py3 running") # simple print title print("i=", i) # for decimal print("ac=", ac) # for character print("msg=",msg) # for string print("x=",x) # for simple floating point print("y=",y) # for double with exponent print("x=%6.3f"%(x)) # using format print("y=%g"%(y)) # using format