Drupal 7 : Programatically Render Table - theme() Example

In Drupal we can able to create a Renderable table from array. This is achieved using function theme(). The theme function accepts Table header, row and attributes for table as associated array. The below syntax and example demonstrate build a table with Array.
Sl No | Name | Country |
1 | Mohan | India |
2 | Dinesh | Russia |
3 | Swathy | America |
4 | Gayathri | England |