The error is as follows:
Cause analysis:
'Alert' object is not callable means that Alert cannot be called by a function, it is not a function.
Solution:
Remove the brackets after Alert.
The correct code is as follows:
The error is as follows:
Cause analysis:
'Alert' object is not callable means that Alert cannot be called by a function, it is not a function.
Solution:
Remove the brackets after Alert.
The correct code is as follows: