Thanks everyone for the help. I managed to show the sidebars on the required  pages.
Thanks for your  support.
Yes, I followed and added the code to my functions.php.
Using the LifterlLMS, I have created a couple of courses. Each course has lesson. I want to show the sidebar on the course pages.
The LifterLMS has also registered two sidebars to show on Course and Lesson pages. If you have seen the video or the code on the URL that I mentioned above, I wanted to know what is id of the sidebar that I should use in code below:
function my_llms_sidebar_function( $id ) {
	$my_sidebar_id = ‘my-sidebar-id’; // replace this with your theme’s sidebar ID
	return $my_sidebar_id;
}
Please let me know if you need any other detail.
Thanks
