How to show Order list by user id and How to show subscription list by user id in woocommerce


I want to show user previous orders in a list for current logged in user as well as subscription purchased by him. I have tried some PHP codes from internet but didn’t get result. I can make Shortcode of a PHP function but i don’t know PHP for write the function well. can someone help me please?