Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 248 Bytes

solutions.md

File metadata and controls

13 lines (10 loc) · 248 Bytes

Solutions

Example solutions (there may be others!)

Exercise 4b

text = ""
num = random.randrange(0, 12)
for x in range(0, num):
    text += random.choice(["<tr>", "</tr>", "</td>", "<td>", "<table>", "</table>", "hello"])
return text