OneCompiler

Python programs error

181

#Find the cube and square of a number
a=float(input('Given number :',a)
S=aa
print("square of given number :",S)
C=a
a*a
print("cube of the given number :",C)

STDIN
3

Output:

File "HelloWorld.py", line 3
S=a*a
^
SyntaxError:

invalid syntax