I am trying to create Label Dynamically , I am getting invalid Syntax. Can you please help me what i am missing or any alternative
crsr = cnxn.execute(query)row_num=2column_num=0Variable_Number=1for row in crsr.fetchall():test='Column_Label'+str(Variable_Number)+' = tk.Label(frame,text="'+row[0]+'")'#proper Indentation availabe in code test1='Column_Label'+str(Variable_Number)+'.grid(row='+str(row_num)+',column='+str(column_num)+')'eval(test+';'+test1)# eval(test1)row_num+=1column_num+=1root.update_idletasks()