<jupyter_start><jupyter_text>Nested For loop<jupyter_code>first_names = ["BlueRay ", "Upchuck ", "Lojack ",
"Gizmo ", "Do-Rag "]
last_names = ["Zzz", "Burp", "Dogbone", "Droop"]
full_name=[]
for i in first_names:
    for j in last_names:
        full_name.append(i+""+j)
full_name

len(full_name)<jupyter_output><empty_output><jupyter_text>While loop conditions in: compound conditional expressions<jupyter_code>list1=['banana', 'apple',  'mango']
list2=['carrot', 'pineapple',  'avacado']
def linear_merge(list1, list2):

    result = []     
    while len(list1) and len(list2):
        if list1[0] < list2[0]:
            result.append(list1.pop(0))
        else:
            result.append(list2.pop(0))    

    result.extend(list1)
    result.extend(list2)
    return result
linear_merge(list1, list2)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1519138755980861, 'fraction_numerical': 0.0215311004784689, 'mean_word_length': 4.23125, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '474969', 'license': 'MIT', 'n_tokens_mistral': 326, 'n_tokens_neox': 316, 'n_words': 56, 'path': 'Control flow part C (nested for Loop).ipynb', 'repo_name': 'wahmed555/PyPractice', 'size': '836'}