Friday, March 31, 2023

LIST PYTHON PROGRAMMING

                LIST PYTHON PROGRAMMING

     stationery = ["pen","pencil","scale","eraser","marker"]

     x = str(input("enter the item name x is :"))

      print("The item is ",x)

      if x in stationery:

          print("The item is available in stationery")

     else:

         print("The item is not available in stationry")

      OUTPUT:

     enter the item name x is :1

      The item is  1

       The item is not available in stationry


LENGTH AND TYPE PYTHON PROGRAMMING

                                     LENGTH AND TYPE PYTHON PROGRAMMING



x = ["apple","orange","banana","kiwi","grapes"]

print(len(x))
print(type(x))

y = [12,"ramya",32.5,"bala",66,100,12,"ramya",66]
print(len(y))
print(type(y))

z = list(("pen","book",100,0.98,"eraser"))
print(z)
print(len(z))
print(type(z))

OUTPUT:
5

<class 'list'>
9
<class 'list'>
['pen', 'book', 100, 0.98, 'eraser']
5
<class 'list'>



























ARRAY PYTHON PROGRAMMING

                         ARRAY PYTHON PROGRAMMING 


           seats = [1,2,3,4,5,6,7,8,9,10]
           print("seats in bus :",seats)
          x = int(input("enter the seat no :"))
          availableseats = [1,3,5,7,9]
          notavailableseats = [2,4,6,8,10]
          if x in availableseats:
              print("the seats are availble")
   else:
        print("the seats are not available")
      
          OUTPUT:

      seats in bus : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
      enter the seat no :1
      the seats are availble













Wednesday, September 22, 2021

Internship Roles and Responsibilities

Internship Registration Link: 

R2C Technologies Internship Registration link

Internship Roles and Responsibilities

It’s important you enter your internship with the right mindset. If you don’t know what to expect from your internship role, you’ll be better prepared and know what you need to do to succeed. Also, carrying out your intern responsibilities successfully will assist you in building up a potent skillset that will shine in your next role. 



An Internship Is...

An internship is an experiential academic experience in which a student has intentional learning goals/objectives with measurable outcomes. These learning goals/objectives may include:

·         Academic Learning: the student may apply and test knowledge learned in the classroom to a professional work environment.

·         Career Development: the student may explore a specific field of interest; expand his or her professional network and gain and understanding of the qualifications and duties involved in a specific profession or career field.

·         Skill Development: the student gains an understanding of the transferable skills and knowledge required for success in a professional work environment and integrates those skills in their academic learning.

·         Personal Development: the student gains decision-making skills, self-confidence, business savvy, ethics, and teamwork required for success in a professional work environment.

An internship is designed as an exchange. The student agrees to complete work that will benefit the host organization and in return is offered the opportunity to learn new skills, expand his or her knowledge of a particular field and explore career options. Employers offer internships for many reasons. They see student interns as fruitful and economical resources with which they can accomplish projects not otherwise possible. They believe interns bring enthusiasm and new ideas into work settings and make strong employees. Just as importantly, employers feel an increasing commitment to education and want to help train students to assume responsible roles in society.

Wednesday, August 25, 2021

Core Python program for Electric Charge Payment

 def amount(n):

    return lambda a : a * n

    

def amount1(n):

    return lambda a, b, c : a*n + b*c


def amount2(n):

    return lambda a, b, c, d, e: a*n + b*d + c*e

    

    

print("\n\t ELECTRIC BILL")

print("\t1.Domestic\n\t2.Cottage and Tiny Industries\n\t3.Industries\n\t4.Public workshop\n\t5.Private Hospital Institution")

print("\t6.Govt and aided Educational Institutions,Hospitals and Research labs")

a=int(input("\n\tEnter the Category:"))

b=input("\tEnter the service.No:")

c=int(input("\tEnter the No.of units consumed:"))

b=str (input("\tEnter the month:"))

d=str(input("\tIts present month(YES OR NO):"))

if a==1:

    if  c<=100:

        amount="BELOW 100 UNITS FREE CHARGE"

        print("\n\tTotal amount:",amount)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

      

    elif c<=200:

        z=c-100

        x = amount(z)

        amount=(x(1.5))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

        elif d=="NO":

            penalty=100

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed") 

            

    elif c<=500:

        x=amount1(100)

        z=c-200

        amount=(x(2,3,z))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

        elif d=="NO":

            penalty=100

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed") 

            

    elif c>500:

        z=c-500

        x=amount2(100)

        amount=(x(3.5, 4.6, 6.6,300,z))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

        elif d=="NO":

            penalty=100

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed") 

            

elif a==2:

    if c<=500:

        x=amount(c)

        amount=(x(4))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

        elif d=="NO":

            penalty=120

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

    elif c>500:

        x=amount(c)

        amount=(x(4.6))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

        elif d=="NO":

            penalty=120

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

elif a==3:

    x=amount(c)

    amount=(x(6.35))

    if d=="YES":

        print("\n\tE-Charge:",amount)

        print("\tTotal amount:",amount)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

        

    elif d=="NO":

        penalty=120

        total=penalty+amount

        print("\n\tE-Charge:",amount)

        print("\tpenalty:",penalty)

        print("\tTotal amount:",total)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

     

elif a==4:

    if c<=120:

        x=amount(c)

        amount=(x(2.85))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

        

        elif d=="NO":

            penalty=120

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

    elif c>120:

        x=amount(c)

        amount=(x(5.75))

        if d=="YES":

            print("\n\tE-Charge:",amount)

            print("\tTotal amount:",amount)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

        elif d=="NO":

            penalty=120

            total=penalty+amount

            print("\n\tE-Charge:",amount)

            print("\tpenalty:",penalty)

            print("\tTotal amount:",total)

            print("\n\tPls, press the pay button.")

            print("\tAmount payed")

            

elif a==5:

    x=amount(c)

    amount=(x(7.5))

    if d=="YES":

        print("\n\tE-Charge:",amount)

        print("\tTotal amount:",amount)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

    elif d=="NO":

        penalty=120

        total=penalty+amount

        print("\n\tE-Charge:",amount)

        print("\tpenalty:",penalty)

        print("\tTotal amount:",total)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

     

elif a==6:

    x=amount(c)

    amount=(x(5.75))

    if d=="YES":

        print("\n\tE-Charge:",amount)

        print("\tTotal amount:",amount)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

    elif d=="NO":

        penalty=120

        total=penalty+amount

        print("\n\tE-Charge:",amount)

        print("\tpenalty:",penalty)

        print("\tTotal amount:",total)

        print("\n\tPls, press the pay button.")

        print("\tAmount payed")

Output:

ELECTRIC BILL

        1.Domestic

        2.Cottage and Tiny Industries

        3.Industries

        4.Public workshop

        5.Private Hospital Institution

        6.Govt and aided Educational Institutions,Hospitals and Research labs


        Enter the Category:2

        Enter the service.No:TNSW0324T23

        Enter the No.of units consumed:210

        Enter the month:AUGUST

        Its present month(YES OR NO):YES


        E-Charge: 840

        Total amount: 840

        Pls, press the pay button.

        Amount payed

Core Python program for population list in India in recursion method

 print("\n\tIndia population list in year wise")

N=int(input("Enter the no.of years (to recursion):"))

def tri_recursion(k):

    a=2021;a1=1393409038;a2=0.97

    b=2020;b1=1380004385;b2=0.99

    c=2019;c1=1366417754;c2=1.02

    d=2018;d1=1352642280;d2=1.04

    e=2017;e1=1338676785;e2=1.07

    f=2016;f1=1324517249;f2=1.10

    g=2015;g1=1310152403;g2=1.12

    h=2014;h1=1295600772;h2=1.15

    i=2013;i1=1280842125;i2=1.19

    j=2012;j1=1265780247;j2=1.24

    k0=2011;k1=1250287943;k2=1.30

    l=2010;l1=1234281170;l2=1.36

    m=2009;m1=1217726215;m2=1.42

    n=2008;n1=1200669765;n2=1.48

    o=2007;o1=1183209472;o2=1.52

    p=2006;p1=1165486291;p2=1.56

    q=2005;q1=1147609927;q2=1.59

    r=2004;r1=1129623456;r2=1.63

    s=2003;s1=1111523144;s2=1.67

    t=2002;t1=1093317189;t2=1.70

    u=2001;u1=1075000085;u2=1.74

    v=2000;v1=1056575549;v2=1.78

    if(k > 0):

        

        result = k + tri_recursion(k - 1)

        while  True:

            

            if result==1:

                print("\n\tfor pervious years:")

                print("\tYear=",b)

                print("\tPopulation=",b1)

                print("\tGrowth rate",b2)

                break

            elif result==3:

                print("\n\tYear=",c)

                print("\tPopulation=",c1)

                print("\tGrowth rate",c2)

                break

            elif result==6:

                print("\n\tYear=",d)

                print("\tPopulation=",d1)

                print("\tGrowth rate",d2)

                break

            elif result==10:

                print("\n\tYear=",e)

                print("\tPopulation=",e1)

                print("\tGrowth rate",e2)

                break

            elif result==15:

                print("\n\tYear=",f)

                print("\tPopulation=",f1)

                print("\tGrowth rate",f2)

                break

            elif result==21:

                print("\n\tYear=",g)

                print("\tPopulation=",g1)

                print("\tGrowth rate",g2)

                break

            elif result==28:

                print("\n\tYear=",h)

                print("\tPopulation=",h1)

                print("\tGrowth rate",h2)

                break

            elif result==36:

                print("\n\tYear=",i)

                print("\tPopulation=",i1)

                print("\tGrowth rate",i2)

                break

            elif result==45:

                print("\n\tYear=",j)

                print("\tPopulation=",j1)

                print("\tGrowth rate",j2)

                break

            elif result==55:

                print("\n\tYear=",k0)

                print("\tPopulation=",k1)

                print("\tGrowth rate",k2)

                break

            elif result==66:

                print("\n\tYear=",l)

                print("\tPopulation=",l1)

                print("\tGrowth rate",l2)

                break

            elif result==78:

                print("\n\tYear=",m)

                print("\tPopulation=",m1)

                print("\tGrowth rate",m2)

                break

            elif result==91:

                print("\n\tYear=",n)

                print("\tPopulation=",n1)

                print("\tGrowth rate",n2)

                break

            elif result==105:

                print("\n\tYear=",o)

                print("\tPopulation=",o1)

                print("\tGrowth rate",o2)

                break

            elif result==120:

                print("\n\tYear=",p)

                print("\tPopulation=",p1)

                print("\tGrowth rate",p2)

                break

            elif result==136:

                print("\n\tYear=",q)

                print("\tPopulation=",q1)

                print("\tGrowth rate",q2)

                break

            elif result==153:

                print("\n\tYear=",r)

                print("\tPopulation=",r1)

                print("\tGrowth rate",r2)

                break

            elif result==171:

                print("\n\tYear=",s)

                print("\tPopulation=",s1)

                print("\tGrowth rate",s2)

                break

            elif result==190:

                print("\n\tYear=",t)

                print("\tPopulation=",t1)

                print("\tGrowth rate",t2)

                break

            elif result==210:

                print("\n\tYear=",u)

                print("\tPopulation=",u1)

                print("\tGrowth rate",u2)

                break

            elif result==231:

                print("\n\tYear=",v)

                print("\tPopulation=",v1)

                print("\tGrowth rate",v2)

                break

                            

    else:

        result=0

        if result==0:

            print("\n\tpopulation for this year")

            print("\tYear=",a)

            print("\tPopulation=",a1)

            print("\tGrowth rate",a2)

            

    return result

tri_recursion(N)

OUTPUT:

India population list in year wise
Enter the no.of years (to recursion):10

        population for this year
        Year= 2021
        Population= 1393409038
        Growth rate 0.97

        for pervious years:
        Year= 2020
        Population= 1380004385
        Growth rate 0.99

        Year= 2019
        Population= 1366417754
        Growth rate 1.02

        Year= 2018
        Population= 1352642280
        Growth rate 1.04

        Year= 2017
        Population= 1338676785
        Growth rate 1.07

        Year= 2016
        Population= 1324517249
        Growth rate 1.1

        Year= 2015
        Population= 1310152403
        Growth rate 1.12

        Year= 2014
        Population= 1295600772
        Growth rate 1.15

        Year= 2013
        Population= 1280842125
        Growth rate 1.19

        Year= 2012
        Population= 1265780247
        Growth rate 1.24

Core python program for list of hospitals in udumalpet surrounding

 def Subam(name):

    print("Dr."+name)

    print("\tAddress: Subam Clinic Medical Centre, No: 2, Saravana Street, Udumalaipettai, Tamil Nadu 642126")

    print("\tPhone: 04252 222 018")

    return Subam


def sk(name):

    print("Dr."+name)

    print("\tAddress: SK Medical Centre, No:20, Saravana Street, Udumalaipettai, Tamil Nadu 642126")

    print("\tPhone: 04252 232 233")

    return sk

    

def Saravana(name):

    print("Dr."+name)

    print("\tAddress: Saravana Hospital, No:9B, Kalpana Rd, Udumalaipettai, Tamil Nadu 642126")

    return Saravana

    

def Sivakani(name):

    print("Dr."+name)

    print("\tAddress: Sivakani Hospital, Nehru Street, Udumalaipettai, Tamil Nadu 642126")

    return Sivakani

    

def SNR(name):

    print("Dr."+name)

    print("\tAddress: SNR Eye Hospital,No:10, YRLayout, Udumalaipettai, Tamil Nadu 642126")

    print("\tPhone: 094863 55014")

    return SNR

    

def Srichakra(name):

    print("Dr."+name)

    print("\tAddress: Srichakra Hospital,No:4/147, Nehru Street, Udumalaipettai, Tamil Nadu 642126")

    print("\tPhone: 096262 00600")

    return Srichakra

    

def Senthil(name):

    print("Dr."+name)

    print("\tAddress: Senthil Kumar Paediatric Clinic,No:12, YRLayout, Udumalaipettai, Tamil Nadu 642126")

    print("\tPhone: 04252 230 403")

    return Senthil

    

def Lakshmi(name):

    print("Dr."+name)

    print("\tAddress: Lakshmi clinic,10.B, M.R.Lodge N Rd, Anusham Nagar, Udumalaipettai, Tamil Nadu 642126")

    return Lakshmi


print("\tList of the Hosiptal in Udumalpet")

print("\n\t1.Subam Clinic Medical Centre(Dr. Ravichandran)")

print("\t2.SK Medical Centre(Dr. Srinivas)")

print("\t3.Saravana Hospital(Dr. Nirmala balakumar)")

print("\t4.Sivakani Hospital(Dr. Sivakani)")

print("\t5.SNR Eye Hospital(Dr. Selvaraj R)")

print("\t6.Srichakra Hospital(Dr. Ashok M)")

print("\t7.Senthil Kumar Paediatric Clinic(Dr. Senthil Kumar)")

print("\t8.Lakshmi clinic(Dr. Lakshmi)")

B=1

while B<=5:

    a=str(input("\n\tEnter the Doctor name:"))

    if a=="Ravichandran":

        Subam=Subam("Ravichandran")

        B=B+1

    elif a=="Srinivas":

        sk=sk("Srinivas")

        B=B+1

    elif a=="Nirmala balakumar":

        Saravana=Saravana("Nirmala balakumar")

        B=B+1

    elif a=="Sivakani":

        Sivakani=Sivakani("Sivakani")

        B=B+1

    elif a=="Selvaraj R":

        SNR=SNR("Selvaraj R")

        B=B+1

    elif a=="Ashok M":

        Srichakra=Srichakra("Ashok M")

        B=B+1

    elif a=="Senthil Kumar":

        Senthil=Senthil("Senthil Kumar")

        B=B+1

    elif a=="Lakshmi":

        Lakshmi=Lakshmi("Lakshmi")

        B=B+1


output:

List of the Hosiptal in Udumalpet


        1.Subam Clinic Medical Centre(Dr. Ravichandran)

        2.SK Medical Centre(Dr. Srinivas)

        3.Saravana Hospital(Dr. Nirmala balakumar)

        4.Sivakani Hospital(Dr. Sivakani)

        5.SNR Eye Hospital(Dr. Selvaraj R)

        6.Srichakra Hospital(Dr. Ashok M)

        7.Senthil Kumar Paediatric Clinic(Dr. Senthil Kumar)

        8.Lakshmi clinic(Dr. Lakshmi)


        Enter the Doctor name:Ravichandran

Dr.Ravichandran

        Address: Subam Clinic Medical Centre, No: 2, Saravana Street, Udumalaipettai, Tamil Nadu 642126

        Phone: 04252 222 018


        Enter the Doctor name:Srinivas

Dr.Srinivas

        Address: SK Medical Centre, No:20, Saravana Street, Udumalaipettai, Tamil Nadu 642126

        Phone: 04252 232 233


8086 file

  8086 file