<jupyter_start><jupyter_text>how to create 2D Arrays(2D List)<jupyter_code>l1D=[i for i in range(10)]
print(l1D)
l2D=[[0,0,0] for i in range(10)]
print(l2D)
l2D1=[[j for j in range(5)]for i in range(10)]
print(l2D1)
l2D2=[[5*i+j for j in range(5)]for i in range(10)]
print(l2D2)<jupyter_output>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]
[[0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]]
[[0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10, 11, 12, 13, 14], [15, 16, 17, 18, 19], [20, 21, 22, 23, 24], [25, 26, 27, 28, 29], [30, 31, 32, 33, 34], [35, 36, 37, 38, 39], [40, 41, 42, 43, 44], [45, 46, 47, 48, 49]]<jupyter_text>how to take input into 2d array<jupyter_code>str=input().strip().split(" ")
n=int(str[0])
m=int(str[1])
l=[int(i) for i in input().strip().split(" ")]
out=[]
for i in range(n):
    out.append([])
    for j in range(m):
        out[i].append(l[i*m+j])
out2=[[l[i*m+j]for j in range(m)]for i in range(n)]<jupyter_output>2 3
1 2 3 4 5 6
{'fraction_non_alphanumeric': 0.2869415807560137, 'fraction_numerical': 0.18900343642611683, 'mean_word_length': 3.9364406779661016, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '652948', 'license': 'MIT', 'n_tokens_mistral': 785, 'n_tokens_neox': 620, 'n_words': 212, 'path': 'Lecture 4 2D Lists and Numpy/2D Lists/2D Lists-checkpoint.ipynb', 'repo_name': 'Paraskk/Data-Science-and-Machine-Leaning-', 'size': '1164'}