When your teachers talk about scholarly literature, they often mean that your sources should be of the kind that has gone through the process of reviewing by independent subject matter experts. This is known as peer review, and is specifically essential to scholarly articles. In many databases you can choose to filter your search to include only articles from journals which use peer review. Here is an example from Primo of what it might look like:
If the search filter for peer review is lacking in the database, you can use the search service ULRICHSWEB (link at the bottom of this page) to check if a journal uses peer review. Enter the journal name in the search box and then look it up in the results list, check for the symbol signifying "Refereed", which is equivalent to peer review, as in the example below:
Scholarly peer-reviewed journal issues may also contain other types of articles (debate, reviews and so on). These types of article are not scholarly reviewed. To be quite certain that an article is scholarly you can check a number of its features like the following examples: its structure, the number of pages, a reasonably long reference list.