<jupyter_start><jupyter_text>Python_Basics comaprision Operators<jupyter_code>string ="Hello"
string.encode()
new_string =string.encode()
type(new_string)
print(new_string)<jupyter_output>b'Hello'<jupyter_text>Condition Operator<jupyter_code>a=10
b=11
a==b
a!=b
a<b
a>=b
not a==b<jupyter_output><empty_output><jupyter_text>Chained Operator<jupyter_code>c=10
a == b and b==c
a==c or b==c
a!=b and  b==c
a!=b or b==c
a!=b and b!=c
not a==b<jupyter_output><empty_output><jupyter_text>3sTATEMENT Statement<jupyter_code>if a == b :
    print(a)
    else:
    print(b)
if a == b :
    print(a)
else:
    print(b)
number = 10
if number%2 == 0 :
    print("even")
else :    
    print("odd")
try:
    number = 60
    if number > 80 :
        print("First class")
    elif number > 35:    
        print("Second class")
    else :
        print("Fail")
except:
    print("Error your code")<jupyter_output>Second class<jupyter_text>For Loop<jupyter_code>my_list = [1,2,3,4,5,6,7,8,9,10]
for num in my_list:
    print(num)
for num in my_list:
    if num%2 == 0:
         print("even",num)
    else:
         print("odd",num)
    
my_string ="rams"
for letter in my_string:
    print(letter)
t = (1,2,3,[3,4,5])
for tup in t:
    print(tup)
list_tup = [(1,2),("rams","vijay")]
for (t1,t2) in list_tup:
    print(t2)
d = {'k1':2,'k2':1,'k3':3}
for k,v in d.items():
    print(k,v)
list(d.keys())
list(d.values())
sorted(d.values())
i =0
primeNumbers = ""
 for num in 100:         
           counter=0 
             if num%2 ==0:
                counter = 2
                  else:
                counter = 0   
                 if counter ==2:
                primeNumbers = primeNumbers + i + " ";
sum=1
end =100
for i in range(1,end+1):
    if i>1:
             if i%2 == 0:
                break;
    else :
         print(i)<jupyter_output>1<jupyter_text>While Loop<jupyter_code>x=0
while x<5:
    print("x current value",x)
    x +=1
else:
    print("complete while loop")
list(range(1,15))
my_list = list(range(15,1,-1))
min(my_list)
list(range(15,0,-1))
input('Enter by myself')
if None:
    print("Hello")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15947467166979362, 'fraction_numerical': 0.03799249530956848, 'mean_word_length': 2.9646840148698885, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 26, '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': '464541', 'license': 'MIT', 'n_tokens_mistral': 912, 'n_tokens_neox': 866, 'n_words': 184, 'path': 'Condition Operator.ipynb', 'repo_name': 'ramsvijay/basic_datatype_python', 'size': '2132'}