<jupyter_start><jupyter_text>Indexing and Slicing<jupyter_code>L = [1, 10, 30, 4, -5]
L[2 : 4 : 2]
'''
for (int i=2; i<4; i+=2) {
    print(L[i])
}
'''
L[0 : 10 : 1]
L[0 : 100 : 1]
L[0 : len(L) : 1]
L[10 : 300 : 1]
'''
for (int i=2; i<min(10, len(L)); i+=2){
    print(L[i])
}
'''<jupyter_output><empty_output><jupyter_text>Conditional ( If-Else )<jupyter_code>x = int(input())

if (x > 0):
    print("Positive")
else:
    print("Negative")
'''
if < statement - (True/False) > : 
  <statement>
  <statement>
  <statement>
  <statement>
  <statement>
else:
  <statement>
  <statement>
  <statement>
<statement> (This statement is out of else)
'''
x = int(input())

if (x > 0):
    print("Positive")
    print("Very Positive")
else:
    print("Negative")
x = int(input())

if (x > 0):
    print("Positive")
    print("Very Positive")
  
print("Now this will work fine!")
type(10 > 0)
x = int(input())

if (x == 10):
    print("==")
elif (x > 10):
    print(">")
elif (x < 10):
    print("<")
elif (x >= 10):
    print(">=")
elif (x <= 10):
    print("<=")
elif (x != 10):
    print(" != ")
else:
    print("What??")
x = int(input())

if (x == 10):
    print("==")
if (x > 10):
    print(">")
if (x < 10):
    print("<")
if (x >= 10):
    print(">=")
if (x <= 10):
    print("<=")
if (x != 10):
    print("!=")
else:
    print("What??")
x = int(input())

if (x == 10):
    print("==")
if (x > 10):
    print(">")
if (x < 10):
    print("<")
if (x >= 10):
    print(">=")
if (x <= 10):
    print("<=")
if (x != 10):
    print("!=")
else:
    print("What??")
a = 200
b = 1

if b > a:
    print("b is greater than a")

print("b is greater than a _ outside if")<jupyter_output>b is greater than a _ outside if<jupyter_text>And / Or<jupyter_code>x = int(input())

if x > 5 and x > 100:
    print("1")
elif x > 10 and x > 20:
    print("2")
if x > 1 or x > 30:
    print("3")
else:
    print("4")
x = int(input())

if x > 5 and x > 100:
    print("1")
elif x > 10 and x > 20:
    print("2")
if x > 1 or x > 30:
    print("3")
else:
    print("4")
# max(a, b, c)

a = int(input())
b = int(input())
c = int(input())

if a > b and a > c:
    print(a)
elif b > a and b > c:
    print(b)
else:
    print(c)<jupyter_output>10
30
20
30<jupyter_text>Nested If<jupyter_code># max(a, b, c)

a = int(input())
b = int(input())
c = int(input())

if a > b:
    if a > c:
        print(a)
elif b > a:
    if b > c:
        print(b)
else:
    print(c)
# max(a, b, c)

a = int(input())
b = int(input())
c = int(input())

if a > b:
    if a > c:
        print(a)
    else:
        print(c)
else: # b >= a
    if b > c:
        print(b)<jupyter_output>11
53
10
53<jupyter_text>Pass Statement ( for skipping )<jupyter_code>if 10 > 30:
    pass<jupyter_output><empty_output><jupyter_text>List<jupyter_code>L = [ 1, "string", 10.5, [2, 3, 4] ]
L<jupyter_output><empty_output><jupyter_text>Dictionary<jupyter_code>d = {
    "key" : "value",
    "name" : "Tanmoy",
    "Dept" : "CSE",
     10 : "Lucky number",
     4 : 400
 }
d
d["name"]
d[4]
d["key"]
student1 = {
    "name" : "Kasfia",
    "ID" : 18101046,
    "dept" : "CSE",
    "university" : "UAP"
}
student2 = {
    "name" : "Aaron",
    "ID" : 18101000,
    "dept" : "CSE",
    "university" : "UAP"
}
student1["ID"]
student_list = [student1, student2]
l2 = [1, 3, 5, 6, 909]
student_list[1]['name']
student2['name']
d_l = {
    'list' : [1, 2, 3, 4, 5],
    "ID" : 18101014
}
d_l['list']
abc = "value"

d2 = {
    abc : "this is an example of variable"
}
d2[abc]
d2["value"]
abc = "value"

d2 = {
    abc : "this is an example of variable"
}

abc = "this is not a value"

d2["value"]
var_1 = "name"
var_2 = "Sourov"

d3 = {var_1 : var_2}
d3["name"]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.22192224622030238, 'fraction_numerical': 0.05372570194384449, 'mean_word_length': 2.949893390191898, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 78, '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': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '314771', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 1797, 'n_tokens_neox': 1650, 'n_words': 437, 'path': 'Lectures/CSE-309-Class-4.ipynb', 'repo_name': 'sourovw/3Y1S-Codes', 'size': '3704'}