-
-
Save ymdx/6d423e474ffbf2d7cba5753621de96ce to your computer and use it in GitHub Desktop.
Generate limited html tags with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def draw_row(n): | |
print "<table>\n"+"\t# call method %d" %n+ " draw_row()" | |
for i in range(0,n): | |
print "\t<tr><td></td></tr>" | |
print "\t#--- End Method" + "\n</table>" | |
number = input("Enter a number: ") | |
draw_row(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment