<jupyter_start><jupyter_text>Python standard libraries- Built in types- Built in functions- Built in modules<jupyter_code># range(start,stop)
nums = range(0,11) # returns a range object

nums_list = list(nums)
print((nums))
print(type(nums))
print(nums_list)
nums_list = list(range(0,11))
print(nums_list)
nums_list = list(range(0,12,2))
print(nums_list)<jupyter_output>[0, 2, 4, 6, 8, 10]<jupyter_text>Using built-in function: enumerate()<jupyter_code>letters = ['a', 'b', 'c','d']
indexed_letters = enumerate(letters)

indexed_letters_list = list(indexed_letters)
print(type(indexed_letters))
print(indexed_letters_list)
value = [i for i in indexed_letters_list if indexed_letters_list[i] == 0]
print(value)<jupyter_output><empty_output><jupyter_text>Example of an exercise<jupyter_code># Create a range object that goes from 0 to 5
nums = ____(____)
print(type(nums))

# Convert nums to a list
nums_list = ____(____)
print(nums_list)

# Create a new list of odd numbers from 1 to 11 by unpacking a range object
nums_list2 = [*____(____,____,____)]
print(nums_list2)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12477231329690346, 'fraction_numerical': 0.022768670309653915, 'mean_word_length': 7.934959349593496, 'pattern_counts': {'":': 0, '<': 12, '<?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': '302116', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 449, 'n_tokens_neox': 413, 'n_words': 97, 'path': 'Instructor_notes/Day_2/old/C1_Python_Standard_Library.ipynb', 'repo_name': 'TU-Delft-DCC/Intro-to-Python-forGIS', 'size': '1098'}