invalid syntax python print code example
Example 1: Python 3 invalid syntax with print()
print("hello")
var = 1
print(var)
var = io.input()
print(var)
Example 2: print("%.2F" S) ^ SyntaxError: invalid syntax
import math
A=float(input("A="))
H=float(input("H="))
C=float(input("C="))
D=float(input("D="))
S==(0.5*A*H)
P==(2*C+2*D)
E==P+S
print("%.2F" S)
print("%.2F" P)
print("%.2F" E)