Find the error in python code
A=4, B= 3 C=math.pow(A,B) print C
Answers
Answered by
1
Explanation:
There are two errors in the given program.
The function “create” is defined using two arguments, 'text' and 'freq', but when the function is called in line number 4, only one argument is passed as a parameter. It should be written ‘create(5, 4)’ i.e with two parameters.
The syntax of ‘print’ function is incorrect. The correct syntax will be ‘print(text)’
Similar questions