Iam wake up to late my valarasu sir class timing 11 am but iam wake up 10:45 am because bescause of sunday because today travel in cuddas lore to chennai so tierd and today more confuse day start and going to wait for bus the bus 11:40 i miss that and next iam 12:15 bus take and going then reach vealachery then iam reach my paiylagam and going inside then my sir there seating then iam going second floor go meet my brothers and sister then take the today iam doing work and program#LIST
- Input: [56, 54, 100, 35, 83, 81, 100, 66, 93, 81, 79, 67, 100, 50, 74, 59, 100, 61, 37, 60]
bucket=0
x=[56, 54, 100, 35, 83, 81, 100, 66, 93, 81, 79, 67, 100, 50, 74, 59, 100, 61, 37, 60]
for i in x:
if i==100:
bucket=bucket+1
print(bucket)
- Given math scores, find how many scored centum: 100
bucket=1
x=[ "math 70","math 100","math 80", "math 100","math60","math100"]
for i in x:
if i=="math 100":
bucket=bucket+1
print(bucket)
Given scores, grade each score: A > 90, B > 80, C > 60, others D
bucket=[]
x=[56, 54, 100, 35, 83, 81, 100, 66, 93, 81, 79, 67, 100, 50, 74, 59, 100, 61, 37, 60]
for i in x:
if i >=90:
bucket=bucket+["grade a "]
elif i >=80:
bucket=bucket+["grade b"]
elif i >=60:
bucket=bucket+["grade c"]
elif i >=50:
bucket=bucket+["grade d"]
print(bucket)Given scores, count students for each grade
bucket=0
students=["sanjay 399","arun 499","parithi 600"]
***********THIS QUEATION DOUGHT ************
Given numbers, reverse numbers [1, 2, 3] -> [3, 2, 1]
x=[2,4,8,10]
x.reverse()
print(x)-
Given numbers, rotate them in place N times [1, 2, 3, 4, 5] -> [4, 5, 1, 2, 3]
- Given numbers, double them in place [1, 2, 3, 4, 5] -> [2, 4, 6, 8, 10]
Sort given numbers
x=[3,9,8,4]
x.sort(reverse=True)
print(x)
7 assending_order in this give number
x=[3,9,8,4]
x.sort()
print(x)
8 given number decending_order
x=[3,9,8,4]
x.sort(reverse=True)
print(x)
- Sum of given numbers
bucket=[]
x=[1,2,3,4,5,6,7,8,9,10]
for i in x:
bucket=bucket+[i+1]
print(bucket)
- Find even, odd
bucket=[]
x=[1,2,3,4,5,6,7,8,9]
for i in x:
if i %2==0:
bucket.append((i,"even"))
else:
bucket.append((i,"odd"))
print(bucket)
- Multiply by 2
bucket=[]
x=[1,2,3,4,5,6,7,8]
for i in x:
bucket.append(i*2)
print(bucket)
Hi HE/Her/SIR/she/TO all you wacth my program and Ima had dougth IAM TOMMROOM ask my valarasu sir and iam now going to home village because my mama will be pray to murugan there grand function first iam not willing to go then my two mama will comple me we will dafuntley come to village now current iam in anthoya train going near melamaruvathur the iam raech 1:30 am my mama will pickup me and iam tommrow nigth again come to chennai bye chennai bye to all good nigth to all..
Top comments (0)