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']



USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...