<jupyter_start><jupyter_text>1. if :<jupyter_code>#Example program to check the given num is +ve or -ve
n=int(input("Enter number to check"))
if n>0:
    print("+ve number")
if n<0:
    print("-ve number")
#program to check the given num is even or odd
n=int(input("Enter number to check even or odd:"))
if n%2==0:
    print("Even number")

if n%2!=0:
    print("odd number")<jupyter_output>Enter number to check even or odd:5
odd number<jupyter_text>2. if else:<jupyter_code>#exampl program to check the given number is +ve or -ve
n=int(input("Enter number to check +ve or -ve:"))
if n>0:
    print("+ve number")
else:
    print("-ve number")
#program to check the given num is even or odd
n=int(input("Enter number to check even or odd:"))
if n%2==0:
    print("Even number")
else:
    print("odd number")
#program to find the biggest number of given two numbers
a=10
b=20
if a>b:
    print("a is big")
else:
    print("b is big")
#program to find the biggest number of given two numbers
a=int(input("Enter a value"))
b=int(input("Enter b value"))
if a>b:
    print("a is big")
else:
    print("b is big")
#program to check the password
oldpswd=<PASSWORD>
pswd=int(input("Enter paswrd:"))
if pswd==oldpswd:
    print("Correct pswrd")
else:
    print("Wrong pswrd")<jupyter_output>Enter paswrd:9966
Correct pswrd<jupyter_text>3. elif<jupyter_code>syntax:
    if condition:
        ----------
        ----------
    elif condition2:
        -----------
        -----------
    elif condition3:
        -----------
        -----------
        .
        .
        .
        .
        .
        .
    else:
        -------------
        -------------
m=int(input("Enter student marks to know the grade:"))
if (m>=40 and m<=50):
    print("C Grade")
elif (m>50 and m<=60):
    print("B Grade")
elif (m>60 and m<=70):
    print("A Grade")
elif (m>70 and m<=89):
    print("First class with distinction")
elif (m>=90 and m<=100):
    print("O Grade")
else:
    print("Failed")
Assignment :
    1. Write a program to find the biggest num of given three nums
    
#program to convert digits to words
n=int(input("Enter number to convert into the word:"))
if n==0:
    print("ZERO")
elif n==1:
    print("ONE")
elif n==2:
    print("TWO")
elif n==3:
    print("THREE")
elif n==4:
    print("FOUR")
elif n==5:
    print("FIVE")
elif n==6:
    print("SIX")
elif n==7:
    print("SEVEN")
elif n==8:
    print("EIGHT")
elif n==9:
    print("NINE")
else:
    print("Enter numbers between 0 to 9:")<jupyter_output>Enter number to convert into the word:80
Enter numbers between 0 to 9:<jupyter_text>Nested if else:<jupyter_code>#example program for ATM operations
PIN=1234
AB=5000
UPIN=int(input("Enter PIN Number:"))
if PIN==UPIN:
    UAMOUNT=int(input("ENter the amount to withdraw:"))
    if UAMOUNT<=AB:
        print("YOur transaction is in process.. Please collect your cash")
        AB=AB-UAMOUNT
        print("Remaning Balance in your account:",AB)
    else:
        print("Insufficient funds ...")
else:
    print("WRONG PIN ... Please Try again")

#example program for ATM operations
PIN=1234
AB=5000
UPIN=int(input("Enter PIN Number:"))

print("1. WITHDRAW       \t 2.PIN CHANGE ")
print("3. BALANCE ENQUIRY\t 4.Mobile Number Change")
x=int(input("Press the number to process: "))

if x==1:
    if PIN==UPIN:
        UAMOUNT=int(input("ENter the amount to withdraw:"))
        if UAMOUNT<=AB:
            print("YOur transaction is in process.. Please collect your cash")
            AB=AB-UAMOUNT
            print("Remaning Balance in your account:",AB)
        else:
            print("Insufficient funds ...")
    else:
        print("WRONG PIN ... Please Try again")
elif x==2:
    xpin=int(input("Enter old pin to change ur pin:"))
    if PIN==xpin:
        PIN=8899
        print("PIN changed successfully ...please dont share with any one...")
    else:
        print("Old PIN is wrong please try again....")
elif x==3:
    print("Account Balance is :", AB)

elif x==4:
    print("Please contact your nearest bank to change phone number....")
else:
    print("Wrong option selected")

#example program for ATM operations
PIN=1234
AB=5000
UPIN=int(input("Enter PIN Number:"))
if PIN==UPIN:
    print("1. WITHDRAW       \t 2.PIN CHANGE ")
    print("3. BALANCE ENQUIRY\t 4.Mobile Number Change")
    x=int(input("Press the number to process: "))

    if x==1:
        if PIN==UPIN:
            UAMOUNT=int(input("ENter the amount to withdraw:"))
            if UAMOUNT<=AB:
                print("YOur transaction is in process.. Please collect your cash")
                AB=AB-UAMOUNT
                print("Remaning Balance in your account:",AB)
            else:
                print("Insufficient funds ...")
        else:
            print("WRONG PIN ... Please Try again")
    elif x==2:
        xpin=int(input("Enter old pin to change ur pin:"))
        if PIN==xpin:
            ypin=int(input("Enter new pin to change old pin:"))
            PIN=ypin
            print("PIN changed successfully ...please dont share with any one...")
            print("Your new pin is:",PIN)
        else:
            print("Old PIN is wrong please try again....")
    elif x==3:
        print("Account Balance is :", AB)

    elif x==4:
        print("Please contact your nearest bank to change phone number....")
    else:
        print("Wrong option selected")
else:
    print("Wrong pin ... Please try again....")<jupyter_output>Enter PIN Number:1234
1. WITHDRAW       	 2.PIN CHANGE 
3. BALANCE ENQUIRY	 4.Mobile Number Change
Press the number to process: 2
Enter old pin to change ur pin:1234
Enter new pin to change old pin:7766
PIN changed successfully ...please dont share with any one...
Your new pin is: 7766<jupyter_text>II. Interative Statements<jupyter_code>If we want execute a group of statements multiple times then we should use iterative statements.

1. for loop
2. while loop<jupyter_output><empty_output><jupyter_text>1. for loop:<jupyter_code>syntax:
    for i in sequence:
        -------------
        -------------
        -------------
#Example program for for loop
s="Hello"
for i in s:
    print(i)
#Example program for for loop
s="Hello"
i=2
for i in s:
    print(i)
#Example program for for loop
l=[1,2,3,4,5,6,7,8]
for i in l:
    print(i)
#Example program without for loop
l=[1,2,3,4,5,6,7,8]
print(l[0])
print(l[1])
print(l[2])
print(l[3])
print(l[4])
print(l[5])
print(l[6])
print(l[7])
    
print("Venky")
print("Venky")
print("Venky")
print("Venky")
print("Venky")
print("Venky")
print("Venky")
print("Venky")

for i in range(10):
    print("Venky")
for i in range(1,21):
    if i%2==0:
        print(i)
#program to print even nums between given range 
for i in range(2,20,2):
    print(i)
#program to print even nums between given range 
for i in range(1,20,2):
    print(i)
#program to print odd numbers using for loop
for i in range(1,21):
    if i%2!=0:
        print(i)
#program to print numbers from 10 to 1
for i in range(10,0,-1):
    print(i)
#program to find sum of list values
l=[1,2,3,4,7,20,12]
sum=0
for i in l:
    sum=sum+i
print("Sum of list of values is:",sum)<jupyter_output>Sum of list of values is: 49
{'fraction_non_alphanumeric': 0.14896590273896032, 'fraction_numerical': 0.026970374510899946, 'mean_word_length': 2.7471204188481675, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '181109', 'license': 'Apache-2.0', 'n_tokens_mistral': 2509, 'n_tokens_neox': 2369, 'n_words': 805, 'path': 'Control sts .ipynb', 'repo_name': 'SaiTanujaChava/Python', 'size': '7150'}