bir dosya var öncelikle "read_file" yapmam lazım bu işlem tamam
daha sonra "remove_stopwords" yapmam lazım bu işlemde tamam noktalama işaretlerini kaldırdım

  
import matplotlib.pyplot as plt
def read_file(Astronomy):
        return open(Astronomy, encoding="utf8").read().lower()
def remove_stopwords(s):
  
    punctuation_list = ['.', ',', '?', '!', ':', ';', '( )', "'", '-', '[ ]']      
        for a in punctuation_list:
      s = s.replace((''+a+ ''),'')

    con_art_list = ['the', 'a', 'an', 'for', 'and', 'or', 'not', 'but', 'yet', 'so', 'of'] #add conjuction and articles in this list as elements
    for r in con_art_list:
        s = s.replace((' '+r+' '),' ')
    return s
şimdi "get_sorted_freq" şeklinde kod yazmam lazım. belli başlı kodlar var onların dışına çıkamıyorum. Kodları yazdım ama kelimeleri değil harfleri okudu burda bir sıkıntı var. Bu benim yazdığım kod.
def get_sorted_berna_beril(s):
    #getting sorted frequency dictionary ()
  
  
    berna_beril={}
    for boğaz_hamarat in s:
        if boğaz_hamarat in berna_beril:
            berna_beril[boğaz_hamarat] += 1
        else:
            berna_beril[boğaz_hamarat] = 1
            
    return dict(sorted(berna_beril.items(), key=lambda x: x[1], reverse=True))
kullanılması istenilen kod
def get_sorted_freq(s):
    #getting sorted frequency dictionary ()
    """    *****       CHANGE (2)      *********
        Inside this function:
        1)Change the dictionary name to your first name, all lower case.
        2)Change the variable name you are iterating to your last name, all lower case.
        If you are working in the team of Sebnem Essiz and Damla Partanaz,
        sebnem_damla should be the dictionary name
        and variable name in the iteration should be essiz_partanaz
            ***************** end ********************
    """
    freq={}
    for v in s:
        if v in freq:
            freq[v] += 1
        else:
            freq[v] = 1
            
    # The function below sorts the dict. with respect to x[1] which are the values of dict.
    return dict(sorted(freq.items(), key=lambda x: x[1], reverse=True)) # just change dict. name nothing else here.