<jupyter_start><jupyter_text>Variables  A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables can be declared by any name or even alphabets like a, aa, abc, etc.<jupyter_code>a = 20
print(a)
string = "Himanshu"
print(string)<jupyter_output>Himanshu<jupyter_text>Variables are of two types:-1. Local Variable2. Global variable  Local Variable<jupyter_code>def func():
    a = 23  #here variable 'a' is a local variable because it is defined in local scope.
    print(a)
func()<jupyter_output>23<jupyter_text>Global Variable<jupyter_code>a = 24
def func():
    global a
    print(a) #here variable 'a' is a global variable
    a = 21 
    print(a)
func()
print(a)<jupyter_output>24
21
21
{'fraction_non_alphanumeric': 0.08078602620087336, 'fraction_numerical': 0.019650655021834062, 'mean_word_length': 4.80379746835443, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '158663', 'license': 'Apache-2.0', 'n_tokens_mistral': 314, 'n_tokens_neox': 292, 'n_words': 116, 'path': 'Variables.ipynb', 'repo_name': 'himanshu-1205/Python-Tutorial', 'size': '916'}