Does anybody have an idea how to rewrite this code snippet into more clean code?
I tried to use a for loop but got this:
You can iterate through the rows_amount and add it like this.
table_html+='<tr>'
for row in schedule:
for i in range(rows_amount):
table_html+='<td>'+str(row[i])+'</td' #adding it to string