<jupyter_start><jupyter_text>Fundamentals of Python Python Variables<jupyter_code>x =float(1)
a, b, c = "Sally", "John", "Ana"
a, b, c = 0, -1, 2

print('This is a sample')
print(a)
print(c)<jupyter_output>This is a sample
0
2<jupyter_text>Casting<jupyter_code>print(x)<jupyter_output>1.0<jupyter_text>Type() Function<jupyter_code>y = "Johnny"

print(type(y))
print(type(x))<jupyter_output><class 'str'>
<class 'float'><jupyter_text>Double quotes and Single quotes<jupyter_code>#h = "Maria"
h = 'Maria'
v = 1
V = 3

print(h)
print(v)
print(v+1)
print(V)<jupyter_output>Maria
1
2
3<jupyter_text>Multiple Variables<jupyter_code>x, y, z = "one", "two", "three"

print(x)
print(y)
print(z)
print(x, y, z)
print(type(x))
print(type(y))
print(type(z))<jupyter_output>one
two
three
one two three
<class 'str'>
<class 'str'>
<class 'str'><jupyter_text>One Value to Multiple Variables<jupyter_code>x = y = z = "Stella"

print(x)
print(y)
print(z)
print(x, y, z)<jupyter_output>Stella
Stella
Stella
Stella Stella Stella<jupyter_text>Output Variables<jupyter_code>x = "enjoying"
y = "Python is"

print(y+" "+x)<jupyter_output>Python is enjoying<jupyter_text>Arithmetic Operations<jupyter_code>f = 1
g = 2
i = 6

print(f + g)
print(f - g)
print(f * g)
print(int(i / g))
print(3 / g)
print(3 % g)
print(3 // g)
print(g ** i)
print (f + i - g)<jupyter_output>3
-1
2
3
1.5
1
1
64
5<jupyter_text>Assignment Operator<jupyter_code>k = 2
l = 1

#print(k+=2)
print(k)
print(k>>2) #shift right twice
print(k<<2) #shift left twice<jupyter_output>2
0
8<jupyter_text>Assignment Operators<jupyter_code>s = 2
s*=5 #Same as s = s * 5

print(s)<jupyter_output>10<jupyter_text>Relational Operators<jupyter_code>print(v>s) #v = 1, s = 2
print(v==s)<jupyter_output>False
False
True<jupyter_text>Logical Operators<jupyter_code>print(v<s and s==s) #If both statements are true, it will print out true
print(v<s or v>s) #If only one statement is true, it will print out true<jupyter_output>True
True<jupyter_text>Identity Operators<jupyter_code>print(s is s)
print(v is not s)<jupyter_output>True
True
{'fraction_non_alphanumeric': 0.15191098209966133, 'fraction_numerical': 0.022254475084663765, 'mean_word_length': 6.893129770992366, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '13', 'dir': 'jupyter-structured-clean-dedup', 'id': '375509', 'license': 'Apache-2.0', 'n_tokens_mistral': 971, 'n_tokens_neox': 934, 'n_words': 210, 'path': 'Fundamentals_of_Python.ipynb', 'repo_name': 'RMBarbado/OOP-58001', 'size': '2067'}