<jupyter_start><jupyter_text>-*- coding: utf-8 -*-Created on Thu Jul 12 06:59:45 2018@author: Prashant<jupyter_code>import json
import ast
ip = int(input("No of Input in IC  : "))
op = int(input("No of Output in IC : "))

line = ip if ip > op else op<jupyter_output>No of Input in IC  : 0
No of Output in IC : 0<jupyter_text>JSON Text Genration<jupyter_code>a = '{"head": {"no_of_input": '+str(ip)+',"no_of_output": '+str(ip)+'}, "inputs": {'
for i in range(2**line):
    tmp = ""
    for j in range(ip):
        tmp += str(bool(int(input())))
        if j != ip-1:
            tmp+=','
    a += '"line' +str(i+1)+ '": ['+tmp+']' 
    if i != 2**ip-1:
        a+=','

a+= '},"outputs": {'

for i in range(2**line):
    tmp = ""
    for j in range(op):
        tmp += str(bool(int(input())))
        if j != op-1:
            tmp+=','
    a +='"line' +str(i+1)+ '": ['+ tmp +']'
    if i != 2**ip-1:
        a+=','
        
a += '}}'<jupyter_output><empty_output><jupyter_text>JSON Outputs<jupyter_code>print(a)
val = ast.literal_eval(a)
json_data = json.loads(json.dumps(val))

no_ip = json_data['head']["no_of_input"]
no_op = json_data['head']["no_of_output"]
inputs = json_data['inputs']
output = json_data['outputs']
for in_line, out_line in zip(inputs, output):
    print([inputs[in_line], output[out_line]])<jupyter_output>[[], []]
{'fraction_non_alphanumeric': 0.2148203592814371, 'fraction_numerical': 0.0187125748502994, 'mean_word_length': 3.5476190476190474, 'pattern_counts': {'":': 7, '<': 11, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '467820', 'license': 'Apache-2.0', 'n_tokens_mistral': 552, 'n_tokens_neox': 533, 'n_words': 122, 'path': 'working/Python/Truth Table Maker.ipynb', 'repo_name': 'Krprashant94/IC74-Database', 'size': '1336'}