Tuesday, April 25, 2023

INPUT :

 y=["kumar","prakas"]

y.reverse()

print(y)

s=["prakash","surya"]

s.reverse()

print(s)

h=["prasath","arun"]

h.reverse()

print(h)

x=y[ : :-1]

print(x)

f=s[ : :-1]

print(f)

n=h[ : :-1]

print(n)

OUTPUT :
['prakas','kumar']
['surya','prakash']
['arun','prasath']
['kumar','prakas']
['prakash','surya']
['prasath','arun']


Monday, April 24, 2023

REVERSE LIST IN PYTHON

INPUT : 

 x=["surya","vikas","kirthik","vasudavan"]

x.reverse()

print(x)

y=["vijay","surya","karthi","ajith"]

y.reverse()

print(y)

z=["prakash","surya"]

z.reverse()

print(z)

m=["kanna","rajesh"]

m.reverse()

print(m)

OUTPUT :

['Vasudavan','Kirthik','Vikas','surya']

['Ajith','Karthi','Surya','Vijay']

['Surya','Prakesh']

['Rajesh','Kanna']



Wednesday, April 5, 2023

Mini project IN JEWELLRY BILLING PYHON PROGRAMMING

 print("                             VRS JEWELLERY")

print("                        SREE VRS VELLI MAHAAL")

print("                 163.P.V.KOVIL STREET,UDUMALPET-642126")

print("                                                                    ")

name=str(input("NAME         :"))

address=str(input("ADDRESS      :"))

place=str(input("PLACE        :"))

mobile=int(input("MOBILE       :"))

print("                                                                    ")

a=25.960

b=77.70

c=a*b

a1=6.750

b1=200

c1=a1*b1

a2=1.230

b2=200

c2=a2*b2

total=c+c1+c2

gst=total*3/100

amount=total+gst

print("------------------------------------------------------------------------")

print("S.NO     ITEMS         WEIGHT         RATE         AMOUNT ")

print("------------------------------------------------------------------------")

print(" 1        CHAIN         25.960        77.70       ",c)      

print(" 2        BRACELET      6.750         200         ",c1)

print(" 3        RING          1.230         200         ",c2)

print("------------------------------------------------------------------------")

print("                                    AMOUNT       ",total)

print("                                     GST%        ",gst)

print("------------------------------------------------------------------------")

print("                                GRAND AMOUNT     ",amount)

print("------------------------------------------------------------------------")

print("                     THANK YOU,VISIT AGAIN !!!!!")

OUTPUT:

 VRS JEWELLERY

                        SREE VRS VELLI MAHAAL

                 163.P.V.KOVIL STREET,UDUMALPET-642126

                                                                    

NAME         :VRS JWELLERY

ADDRESS      :SREE VRS VELL MAHAAL

PLACE        :UDMALPET 

MOBILE       :12345678899

                                                                    

------------------------------------------------------------------------

S.NO     ITEMS         WEIGHT         RATE         AMOUNT 

------------------------------------------------------------------------

 1        CHAIN         25.960        77.70        2017.092

 2        BRACELET      6.750         200          1350.0

 3        RING          1.230         200          246.0

------------------------------------------------------------------------

                                    AMOUNT        3613.092

                                     GST%         108.39276

------------------------------------------------------------------------

                                GRAND AMOUNT      3721.4847600000003

------------------------------------------------------------------------

                     THANK YOU,VISIT AGAIN !!!!!









TICKET MANAGEMENT SYSTEM

                         TICKET MANAGEMENT SYSTEM


 print("          TICKET MANAGEMENT SYSTEM")

print("-------------------------------------------------")

x = str(input("enter the starting point : "))

y = str(input("enter the destination point : "))

z = int(input("enter the no of adults : "))

w = int(input("enter the no of kids :"))

v = int(input("enter the no of senior citizens : "))

print("--------------------------------------------------")

busfair = 1000 #for adults

busfair1 = 750 #for kids

busfair2 = 500 #senior citizens 

totalamount = z*1000+w*750+v*500

print("PAYMENT OPTION : ")

print("  1. online")

print("  2. cash")

e = passwordfortransaction = 1234

a = int(input("enter the mode of operation : "))


if a==1:

    b =str(input("enter the mobile number : "))

    print("total amount : ", totalamount)

    c=int(input("enter the password for transaction :"))

    if c==1234:

        print("the password is correct")

        print("payment received")

    else:

        print("the password is not correct")

        print("payment failed!")

    print("--------------------------------------------------")

    print("              Thank you, visit again !!!!!")

else:

    print("total amount is : ", totalamount)

    print("cash received!")

    print("              Thank you, visit again!!!!!")

OUTPUT:

  TICKET MANAGEMENT SYSTEM

-------------------------------------------------

enter the starting point : 1

enter the destination point : 1

enter the no of adults : 1

enter the no of kids :1

enter the no of senior citizens : 1

--------------------------------------------------

PAYMENT OPTION : 

  1. online

  2. cash

enter the mode of operation : 1

enter the mobile number : 1234567890

total amount :  2250

enter the password for transaction :2

the password is not correct

payment failed!

--------------------------------------------------

              Thank you, visit again !!!!!








Saturday, April 1, 2023

Membership and identity operators using python programming

Membership and identity operators

a=24

b=12

print(a+b)

print(a-b)

print(a*b)

print(a/b)

output:

36
12
288
2.0

OPERATORS AND ,OR,NOT USING PYTHON PROGRAMMING

                   OPERATORS AND ,OR,NOT USING PYTHON PROGRAMMING 

         x =10

         y = 8 

        print(x>6 and y<10)

       print(x<7 or y>5)

       print(not(x>=10 and y>6))

        print((x+y)>10)

        print((x-y)>=2) 

        OUTPUT:

       True

      False

     True

     True





SPEED CALCULATION PYTHON PROGRAMMING

                                      SPEED CALCULATION PYTHON PROGRAMMING 

       x = int(input("enter the distance in m : "))

        y = int(input("enter the time in sec : "))

      speed = x/y # speed in m/sec 

       print("the speed is (m/sec) : ",speed)

       speed1 = x/y * 18/5 #speed in km/h

       print("the speed in km/h :",speed1)

 OUTPUT:

    enter the distance in m : 1

        enter the time in sec : 2

      the speed is (m/sec) :  0.5

      the speed in km/h : 1.8



MODIFYING STRING METHODS USING PYTHON PROGRAMMING

                                             MODIFYING STRING METHODS

   a="Hey,Beautiful!"

  #upper case

   print(a.upper())

   #lower case

   print(a.lower())

   a="  Hey,beautiful!"

  #remove whitespace

  print(a.strip())

  a="hey,beautiful!"

  #replace word

  print(a.replace("hey","Hai"))

  a="hey,beautiful!"

  #split words

  print(a.split(","))

                OUTPUT:

      HEY,BEAUTIFUL!

       hey,beautiful!

       Hey,beautiful!

         Hai,beautiful!

        ['hey', 'beautiful!']



ADDING TWO STRINGS WITH SLICING METHODS USING PYTHON PROGRAMMING

                        ADDING TWO STRINGS WITH SLICING METHODS

   a="life is "

   b="beautiful"

   c=a+b

  print(c)


  #positive index

  print(c[3:15])


  #slice to the start

  print(c[:15])


  #slice to the end 

  print(c[8:])


  #negative indexing

  print(c[-10:-4])


  #first negative index and positive index

   print(c[-12:7])


  #positive index with positive interval

   print(c[2:14:3])


   #negative index with negative interval

   print(c[-2:-12:-1])


    #positive index with negative interval

   print(c[12:5:-2])


# 2 negative and 1 positive interval

print(c[-17:-5:4])


  #1 positive 1 negative and one positive interval

   print(c[12:-8:-2])


  #1 negative 1 positive and 1 negative interval

   print(c[-5:7:-1])


   #slice to the start with positive index and positive interval

   print(c[ :10:2])


   #slice to the start with negative index and negative interval

    print(c[:-10:-2])


   #without index only interval

   print(c[ : :4])


   #without index only negative interval

   print(c[ : :-1])


   #without index and interval

   print(c[ : : ])

   OUTPUT:

   life is beautiful
   e is beautif
   life is beautif
    beautiful
    beaut
    is
   fibu
  ufituaeb s
  tabs
  l b
  ta
  tuaeb
  lf sb
  lftab
  l btl
  lufituaeb si efil
  life is beautiful


USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...