TCS PRA 6th September || JAVA/ PYTHON || IEVOLVE ANSWERS
2.68K subscribers
385 photos
1.62K files
124 links
Download Telegram
class Toy:
def init__(self,id,name,quantity):
self.id=id @examcell
self.name=name
self.quantity=quantity

class ToyStore:
def init(self,toyStoreName,toyList):
self.toyStoreName=toyStoreName
self.toyList=toyList

def findToyWithMaximumQuality(self):
if len(self.toyList)==0:
return None
else:
max_obj = max(self.toyList, key=lambda x:x.quantity) @examcell936
return max_obj

def sortToyById(self):
if len(self.toyList)==0:
return None
else:
sorted_list = sorted(self.toyList, key=lambda x:x.id)
return sorted_list

n = int(input())
toyList = []
for i in range(n):
id = int(input())
name = (input())
quantity = float(input())

s = Toy(id,name,quantity)
toyList.append(s)

d = ToyStore("Dep1", toyList)
o1 = d.findToyWithMaximumQuality()
if o1==None:
print("No Data Found")
else:
print(o1.id)
print(o1.name)
print(o1.quantity)

o2 = d.sortToyById()
if o2==None:
print("No Data Found")
else:
for o in o2:
print(o.id)


PYTHON TOY CODE 💯💯

TCS PRA APRIL 12 🙌🙌

📌📌TELEGRAM :

https://t.me/examcellsolutions

https://t.me/examcellsolutions
class Toy:

def init__(self,id,name,quantity):
self.id=id @examcell
self.name=name
self.quantity=quantity

class ToyStore:
def init__(self,toyStoreName,toyList):
self.toyStoreName=toyStoreName
self.toyList=toyList

def findToyWithMaximumQuality(self):
if len(self.toyList)==0:
return None
else:
max_obj = max(self.toyList, key=lambda x:x.quantity) @examcell936
return max_obj

def sortToyById(self):
if len(self.toyList)==0:
return None
else:
sorted_list = sorted(self.toyList, key=lambda x:x.id)
return sorted_list

n = int(input())
toyList = []
for i in range(n):
id = int(input())
name = (input())
quantity = float(input())

s = Toy(id,name,quantity)
toyList.append(s)

d = ToyStore("Dep1", toyList)
o1 = d.findToyWithMaximumQuality()
if o1==None:
print("No Data Found")
else:
print(o1.id)
print(o1.name)
print(o1.quantity)

o2 = d.sortToyById()
if o2==None:
print("No Data Found")
else:
for o in o2:
print(o.id)


PYTHON TOY CODE 💯💯

TCS PRA APRIL 12 🙌🙌

📌📌TELEGRAM :

https://t.me/examcellsolutions

https://t.me/examcellsolutions
Forwarded from 🃏EXAMCELL SOLUTIONS🤡 (BOSS)
Hi TCSer's ❤️

PRA RESULT OUT APRIL 12th 🚨

Check everyone ur mails 🏃🏃

@examcell936
HI TCSer's ❤️


🚨PRA MAY 10th and MAY 12th

Slots are open 🚨🚨

👉 Guaranteed 80+

👉 All Mcqs + Unix code + Java/Python code will be provided 💯💯

👉 Scroll up 👆👆 to check our acchivements🎉🎉

Only Limited seats ⚠️⚠️

Book ur slot ASAP 🏃🏃🏃🏃

👇 For slot booking 👇

@codeguru63
@codeguru63

📌📌 Telegram:
https://t.me/tcsprajavapythonitis

https://t.me/tcsprajavapythonitis
Don't belive for fake person for ur PRA EXAM 🙌

Don't waste ur PRA attempt 😔

We promising u for ur Clearence of PRA PYTHON / JAVA in first attempt with 80+ clearence 💯💯💯

Don't go for fake persons Just belive on us 🤞🙌
We will uplode all the IEVOLVE COURSE ANSWERS here 💯💯

All assessments answers too uploded here 🙌