<jupyter_start><jupyter_text>Condition Operations<jupyter_code>a = 10
b = 21
a==b
a > b
a < b
a != b
a <> b
a <= b
a >= b
not a == b<jupyter_output><empty_output><jupyter_text>Chained Operations<jupyter_code>a > b and a != b
a > b or a != b
c = 21
c > b and not a == b
not a == b
c > b and b > a or c > a<jupyter_output><empty_output><jupyter_text>Python Statements if else if elif elseforwhile<jupyter_code>if (a==b) {
    print('Kumaran')
}
if a==b :
    print(a)
else:
    print(b)
if a%2 > 0 :
    print('Odd')
else:
    print('Even')
a
print(b)
print(c)
c
b
c = 36<jupyter_output><empty_output><jupyter_text>Multiple branches of if else that is elif<jupyter_code>if a/b > 1 :
    print("Hello")
elif a <= c :
    print('Good Day')
else:
    print('Good Morning')
a = 10
if a < 40 :
    print('Fail')
elif a > 40 and a <= 50 :
    print('Second Class')
elif a > 50 and a <= 75 :
    print('First Class')
else:
    print("Distinction")<jupyter_output>Fail<jupyter_text>For Loops<jupyter_code>my_lst = [1,2,3,4,5,6,7,8,9,10]
for var in my_lst :
    print(var)
for var in my_lst :
    print(var)
else:
    print("Looping is complete")
for num in my_lst:
    if num%2 == 0 :
        print('{0} is {1} num', 'Even', num)
    else:
        print('{0} is {1} num', 'Odd', num)
        
my_string = "This is my name"
for word in my_string:
    print(word)
t = (1,2,3,4,5)
for tup in t:
    print(tup)
list_of_tuple = [(1,2),(3,4),(5,6),(7,8)]
list_of_tuple
for (t1,t2) in list_of_tuple:
    print(t2)
d = {'k1':1,'k2':2,'k3':3}
d
for k,v in d.items():
    print(k,v)
for v in d:
    print(v)
sorted(d.values())
my_lst = [1,2,3,4,5,6,7,8,9,10]
start = 1
end = 100
for num in range(start,end+1):
    if a>1 :
        for i in range(2, num):
            if num%i == 0:
                break
    else:
        print('Prime Number: ')<jupyter_output><empty_output><jupyter_text>While loop<jupyter_code>x=0

while x<10:
    x+=1
    if x <= 1:
        print('Value is {0}'.format(x))
        continue
    if x >= 3:
        print('Value is 3')
        break
    print('Current value = {0}'.format(x))
else:
    print('ouside code block. close the block now')
while a>b:
    pass
print(a)
print(b)
for i in range(0,10):
    print(i)
my_lst = list(range(1,10))
max(my_lst)
# Random

from random import shuffle
shuffle(my_lst)
my_lst
from random import randint
randint(0,25)
# how to take an input in Python

input('enter a number in the input box : ')
int(input('enter a number in the input box : '))<jupyter_output>enter a number in the input box : 23
{'fraction_non_alphanumeric': 0.1562992125984252, 'fraction_numerical': 0.03976377952755906, 'mean_word_length': 3.249163879598662, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 39, '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': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '85722', 'license': 'MIT', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1058, 'n_words': 301, 'path': 'Condition Operations.ipynb', 'repo_name': 'vijayjoset/PythonFCSITM', 'size': '2540'}