# Enter your code here. Read input from STDIN. Print output to STDOUT
class Patient:
def init(self,code,name,age,counsellorName,billAmount):
self.code= code
self.name= name
self.age = age
self.counsellorName = counsellorName
self.billAmount = billAmount
class Counselllor:
def init(self,cn,ptList):
self.cn = cn
self.ptList = ptList
def findPatientWithMinimumAge(self):
if self.ptList!=[]:
return sorted(self.ptList,key=lambda x:x.age)[0]
else:
return None
def sortPatientByBillAmount(self):
if self.ptList!=[]:
return sorted(self.ptList,key=lambda x:x.billAmount)
else:
return None
ptList = []
for i in range(int(input())):
obj = Patient(input(),input(),int(input()),input(),float(input()))
ptList.append(obj)
p = Counselllor("Johny",ptList)
mV = p.findPatientWithMinimumAge()
if mV!=None:
print(mV.code)
print(mV.name)
print(mV.age)
print(mV.counsellorName)
print(mV.billAmount)
else:
print("No Data Found.")
s = p.sortPatientByBillAmount()
if s!=None:
for i in s:
print(i.billAmount)
else:
print("No Data Found.")
https://t.me/Coding_solution_0
class Patient:
def init(self,code,name,age,counsellorName,billAmount):
self.code= code
self.name= name
self.age = age
self.counsellorName = counsellorName
self.billAmount = billAmount
class Counselllor:
def init(self,cn,ptList):
self.cn = cn
self.ptList = ptList
def findPatientWithMinimumAge(self):
if self.ptList!=[]:
return sorted(self.ptList,key=lambda x:x.age)[0]
else:
return None
def sortPatientByBillAmount(self):
if self.ptList!=[]:
return sorted(self.ptList,key=lambda x:x.billAmount)
else:
return None
ptList = []
for i in range(int(input())):
obj = Patient(input(),input(),int(input()),input(),float(input()))
ptList.append(obj)
p = Counselllor("Johny",ptList)
mV = p.findPatientWithMinimumAge()
if mV!=None:
print(mV.code)
print(mV.name)
print(mV.age)
print(mV.counsellorName)
print(mV.billAmount)
else:
print("No Data Found.")
s = p.sortPatientByBillAmount()
if s!=None:
for i in s:
print(i.billAmount)
else:
print("No Data Found.")
https://t.me/Coding_solution_0
int main()
(
char name[20];
funcionally for event pas on grocery Gems A certain amount of reward points will be given the user if they use a credit card for the payment Reward points are calculated by the sum of all the add digits of the bill amount for the user.
10
return 0;
9
13
14
15
Write an algorithm which will calculate the reward points for the user based on the bill amount.
16
#include<stdio.h>
17
18
int main()
19
{
20
billAmount, representing the user's bill amount.
21
Output
Print an integer representing the reward points given to the user.
Example
Input:
1234567
Output:
16
23
}
// write output to STDOUT
*/
// Read input from STDIN
scanf("%s", name); printf("Hello %a", name);
11
12
// Warning: Printing unwanted or ill-formatted data to output will c
Input
The input consists of an integer
// Write your code here return 0;
https://t.me/Coding_solution_0
(
char name[20];
funcionally for event pas on grocery Gems A certain amount of reward points will be given the user if they use a credit card for the payment Reward points are calculated by the sum of all the add digits of the bill amount for the user.
10
return 0;
9
13
14
15
Write an algorithm which will calculate the reward points for the user based on the bill amount.
16
#include<stdio.h>
17
18
int main()
19
{
20
billAmount, representing the user's bill amount.
21
Output
Print an integer representing the reward points given to the user.
Example
Input:
1234567
Output:
16
23
}
// write output to STDOUT
*/
// Read input from STDIN
scanf("%s", name); printf("Hello %a", name);
11
12
// Warning: Printing unwanted or ill-formatted data to output will c
Input
The input consists of an integer
// Write your code here return 0;
https://t.me/Coding_solution_0
n=int(input())
n=n//2
l=list(map(int,input().split(" ")))
l.sort()
print(l[n-1]+l[n])
https://t.me/Coding_solution_0
n=n//2
l=list(map(int,input().split(" ")))
l.sort()
print(l[n-1]+l[n])
https://t.me/Coding_solution_0
n=int(input())
a=list(map(int,input().split()))
new=[]
for i in a:
if i>0:
new.append(a.index(i))
print(len(new))
Python 3
Telegram:- Jion now
Telegram- https://t.me/Coding_solution_0
a=list(map(int,input().split()))
new=[]
for i in a:
if i>0:
new.append(a.index(i))
print(len(new))
Python 3
Telegram:- Jion now
Telegram- https://t.me/Coding_solution_0
Job Job Job Updates π£
For 2021 and 2022 batch
Lot of Job Opportunity β€οΈ
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
For 2021 and 2022 batch
Lot of Job Opportunity β€οΈ
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
X=input()
Y=input()
If y in x:
Print ("Yes")
Else:
Print ("No")
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
Y=input()
If y in x:
Print ("Yes")
Else:
Print ("No")
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
Job Job Job Updates π£
For 2021 and 2022 batch
Lot of Job Opportunity β€οΈ
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
For 2021 and 2022 batch
Lot of Job Opportunity β€οΈ
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
Forwarded from Off Campus job Updates- Placement Material
*Its a fantastic News for Final Year Studentsπ, Graduatesπ¨π»βπ and people who have just started their career* .
π€―β’ Pay Only When you land a JOB. Yes, You are right!! Why pay hefty amount on courses Initially ?
π»β’ A 9 Months coding bootcamp on Web Development- Learn Full Stack development, DS and Algo, System Design and work on various course projects.
π΅. An Average Package of 7.8 Lakhs offered among all the batches of career camp.
πβ’ Get Your career Started in product based organisations like RazorPAy, Paytm, Snaphunt etc.
*Only few seats remain*!!
Register Now- https://bit.ly/3hah5VW
Last date for the registration- 27th Feb
π€―β’ Pay Only When you land a JOB. Yes, You are right!! Why pay hefty amount on courses Initially ?
π»β’ A 9 Months coding bootcamp on Web Development- Learn Full Stack development, DS and Algo, System Design and work on various course projects.
π΅. An Average Package of 7.8 Lakhs offered among all the batches of career camp.
πβ’ Get Your career Started in product based organisations like RazorPAy, Paytm, Snaphunt etc.
*Only few seats remain*!!
Register Now- https://bit.ly/3hah5VW
Last date for the registration- 27th Feb
Forwarded from Off Campus job Updates- Placement Material
Weekly Job Updates π£
πCongnizant
https://t.me/offcampusjobs_0/950
πTech Mahindra
https://t.me/offcampusjobs_0/951
π Capgemini
https://t.me/offcampusjobs_0/953
πQuick Heal
https://t.me/offcampusjobs_0/954
β Join Telegram Channel for More Update
https://t.me/offcampusjobs_0
SHARE IN YOUR COLLEGE
WHAT'S APP GROUP β€οΈβ€οΈ
πCongnizant
https://t.me/offcampusjobs_0/950
πTech Mahindra
https://t.me/offcampusjobs_0/951
π Capgemini
https://t.me/offcampusjobs_0/953
πQuick Heal
https://t.me/offcampusjobs_0/954
β Join Telegram Channel for More Update
https://t.me/offcampusjobs_0
SHARE IN YOUR COLLEGE
WHAT'S APP GROUP β€οΈβ€οΈ
Today All Exam Solution Available here β€οΈ
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
https://t.me/offcampusjobs_0
Off Campus Job Update pinned Β«Today All Exam Solution Available here β€οΈ https://t.me/offcampusjobs_0 https://t.me/offcampusjobs_0Β»
Wipro EXAM Code's
1) E- Commerce
2) warehouse
3) Batman
4) credit card
5) barcode
6) today apparels
7) perfect math
8) real estate
9) festival season
10) municipal Corporation
11) bedug
12) generate the players
13)integer_ num shock
14) warehouse
14) allcoding1
15) weather today
16) word finder
17) E_learning
18) Amusement park
19) MNC
20) Dancing mania
21) Company is transmitting
22) Eng at tip
23) online manth course
24) online exam
25) space word
26) space research
27) faraway home
28) image processing
29) Tutoring guide
30)Place Hill code
Wipro all codes available
Telegram-
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
1) E- Commerce
2) warehouse
3) Batman
4) credit card
5) barcode
6) today apparels
7) perfect math
8) real estate
9) festival season
10) municipal Corporation
11) bedug
12) generate the players
13)integer_ num shock
14) warehouse
14) allcoding1
15) weather today
16) word finder
17) E_learning
18) Amusement park
19) MNC
20) Dancing mania
21) Company is transmitting
22) Eng at tip
23) online manth course
24) online exam
25) space word
26) space research
27) faraway home
28) image processing
29) Tutoring guide
30)Place Hill code
Wipro all codes available
Telegram-
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0
https://t.me/Coding_solution_0