program which will generate flowchart of codes given by user
import pygame import os import glob def list_all_images(directory): return [os.path.basename(f) for f in glob.glob(directory + "*")] def draw_flowchart(draw, flowchart_input_text, flowchart_output_text, flowchart_flow_text): print(flowchart_input_text) print(flowchart_output_text) print(flowchart_flow_text) flowchart_input_array = flowchart_input_text.split(',') flowchart_output_array = flowchart_output_text.split(',') flowchart_flow_array = flowchart_flow_text.split(',') for i in range(0, len(flowchart_input_array)): draw.rect(screen, (0,0,0), (100,100+50*i, 40, 40), 0) draw.rect(screen, (0,0,0), (100,100+50*i+40,