Prerequisites for artificial intelligence
Basically you need to understand the automation and how it is related to the computer science. Secondly knowledge of Basic Programming Languages like C, C++ and Java as they give a basic knowledge of writing and executing codes. After that you have some knowledge of mathematics like linear algebra ,statics, calculus,probability and matrices.
These are the Pre-requitics for learning Artificial Intelligence after that you can easily learn Artificial Intelligence.