Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def makeStupidTable(n):
- # Create the table head and body strings
- table_head = "<thead><tr><th>Number</th></tr></thead>"
- table_body = "<tbody>" + "".join([f"<tr><td>{i}</td></tr>" for i in range(n)]) + "</tbody>"
- table = f"<table>{table_head}{table_body}</table>"
- return table
Advertisement
Add Comment
Please, Sign In to add comment