<jupyter_start><jupyter_text>Python Indentation<jupyter_code>if 10 > 5:
  print("Ten is greater than five!")<jupyter_output>Five is greater than two!<jupyter_text>Python Comments<jupyter_code>#This is a comment<jupyter_output><empty_output><jupyter_text>Variable Naming Convention<jupyter_code>#RULES FOR NAMING PYTHON VARIABLE
  #it must start with a letter or the underscore character
  #it cannot start with a number
  #it can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
  #it is case-sensitive (myVar, myvar, MYVAR, mYVaR, Myvar are all different variables)<jupyter_output><empty_output><jupyter_text>Storing Data Values in Variables<jupyter_code>x = 1
y = 2
z = 3
my_Age = "19"
favoriteCOLOR = "RED"
name = "<NAME>"

print(x)
print(y)
print(z)
print(my_Age)
print(favoriteCOLOR)
print(name)<jupyter_output>1
2
3
19
RED
<NAME><jupyter_text>Multiple Variables<jupyter_code>x,y,z=1,2,3
print(x)
print(y)
print(z)
a,b,c="two","four","six"
print(a)
print(b)
print(c)<jupyter_output>two
four
six<jupyter_text>Casting<jupyter_code>j = "jhoriz" #This is a type of string
j = int(22)

print(j)  #The recent value of the variable will be prioritize, thus it should be the integer 22

j = float(22)

print(j)<jupyter_output>22.0<jupyter_text>Data Type Function<jupyter_code>c = 2
p = "two"
e = 2.0

print(type(c))
print(type(p))
print(type(e))<jupyter_output><class 'int'>
<class 'str'>
<class 'float'><jupyter_text>String Variables<jupyter_code>#Note: Both Single and Double Quoted String are correct 
#Double Quoted
g = "Rodel"

print(g)
#Single Quoted
g = 'Rodel'

print (g)<jupyter_output>Rodel<jupyter_text>One Value to Multiple Variables<jupyter_code>m = n = o = "five"

print(m)  
print(n)
print(o)<jupyter_output>five
five
five<jupyter_text>Output Variables<jupyter_code>my_Age = "19"
favoriteCOLOR = "RED"
name = "<NAME>"

print("I am " + name + ", " + my_Age, "years old sutdent, and my favorite color is " + favoriteCOLOR + ".")
#Other Way
a = "I am <NAME>,"
b = " 19 years old sutdent,"
c = " and my favorite color is RED."
d = a + b + c

print(d)<jupyter_output>I am <NAME>, 19 years old sutdent, and my favorite color is RED.<jupyter_text>Arithmetic Operations<jupyter_code>x = 10
y = 7

print (x - y)
x = 10
y = 7
difference = x - y

difference<jupyter_output><empty_output><jupyter_text>Assignment Operators<jupyter_code>x=5
x+=5  #This is the same as x = x + 5, where x = 5, hence x = 5 + 5

print(x)
num1=5
num1-=2 #This is the same as num1 = num1 - 2, where num1 = 5, hence num1 = 5 - 2

print(num1)<jupyter_output>3<jupyter_text>Comparison Operators<jupyter_code>r = 5
t = 15
x = 10
v = 5

print(r>t)
print(t>x)
print(r==v)<jupyter_output>False
True
True<jupyter_text>Logical Operators<jupyter_code>r = 5
t = 15
x = 10
v = 5

print(r<t and r==v)     #both are true, hence it is TRUE
print(t<x and v<x)      #v<x is true, but t<x is false, hence it is FALSE
print(t<x or v<x)       #one of them is true, hence it is TRUE
print(not(t and r==v))  #since both are true, the output should be reversed, hence it is FALSE<jupyter_output>True
False
True
False<jupyter_text>Identity Operators<jupyter_code>a,b,c=3,6,9

print(a is c)       #they are not equal, hence FALSE
print(a is not b)   #they are not equal, so a is not b, hence TRUE<jupyter_output>False
True
{'fraction_non_alphanumeric': 0.12340812613705276, 'fraction_numerical': 0.023347483323226198, 'mean_word_length': 5.3810444874274665, 'pattern_counts': {'":': 0, '<': 64, '<?xml version=': 0, '>': 60, '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': '15', 'dir': 'jupyter-structured-clean-dedup', 'id': '422478', 'license': 'Apache-2.0', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1332, 'n_words': 382, 'path': 'WEEK7_AQUINO_BSCpE1_2.ipynb', 'repo_name': 'JHORIZ-RODEL-AQUINO/CPEN-21A-CPE-1-2', 'size': '3328'}