Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi so the following questions are on python (3.7) need your help with them. 1) 2

ID: 3753990 • Letter: H

Question

Hi so the following questions are on python (3.7) need your help with them.

1)

2)

3)

the following below are good examples on how to go about these... much thanks team chegg

Complete the get_mid_letter() function which is passed a list of strings as a parameter. The function returns a string made up of the concatenation of the middle letter of each word from the parameter list. The string returned by the function should be in lowercase characters. If the parameter list is an empty list, the function should return an empty string For example: Test Result print("1.", get mid_letter([ "Jess", "Cain", "Amity" "Raeann"]))1. siia Answer: (penalty regime: 0 %) 1,1 def get-mid-letter(a-list):

Explanation / Answer

def get_mid_letter(a_list):

changechar=""

for s in a_list:

l=len(s)

mid=(l/2)

changechar=changechar+s[mid:mid+1]

return changechar

print("1.",get_mid_letter(["Jess","Cain","Amity","Raeann"]))

def get_passaverage(marks):

total=0

count=0

for m in marks:

if m>=50:

total=total+m

count=count+1

if count==0:

return -1

else:

average=total/count

return average

list1=[50,83.36,65,92,29,77,64]

print('%.2f'%get_passaverage(list1))

def get_common_words_used(sentence,common_words):

sentence=sentence.lower()

sentence1=sentence.split(' ')

list1=[]

for s in sentence1:

for w in common_words:

if w==s:

if w not in list1:

list1.append(w)

list1.sort()

return list1

print(get_common_words_used("Easy come, easy go go go",["a","go","i","on","the"]))

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote