




'''simple docstring'''


def 		_lowerCAmelCase							(   lowercase							: str    )			->Union[str, Any]:
   """simple docstring"""




   if n_term == "":
      return []
   lowercase__       							=							[]
   for temp in range(int(a_    )    ):
      series.append(F'''1/{temp + 1}''' if series else '''1'''    )
   return series


if __name__ == "__main__":
  _lowerCAmelCase  		=      input("Enter the last number (nth term) of the Harmonic Series")
  print("Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n")
  print(harmonic_series(nth_term))










'''simple docstring'''


from __future__ import annotations

import csv

import requests
from bsa import BeautifulSoup


def     SCREAMING_SNAKE_CASE							(   a_						:				str = ""      ):
  __a								=       url or 'https://www.imdb.com/chart/top/?ref_=nv_mv_250'
  __a								=       BeautifulSoup(requests.get(a_      ).text					,       'html.parser'      )
  __a								=       soup.find_all('td'					,       attrs='titleColumn'      )
  __a								=       soup.find_all('td'					,       class_='ratingColumn imdbRating'      )
  return {
      title.a.text: float(rating.strong.text      )
      for title, rating in zip(a_					,       a_      )
  }


def     SCREAMING_SNAKE_CASE							(   a_						:				str = "IMDb_Top_250_Movies.csv"      ):
  __a								=       get_imdb_top_aaa_movies()
  with open(a_					,       'w'					,       newline=''      ) as out_file:
    __a								=       csv.writer(a_      )
    writer.writerow(['Movie title', 'IMDb rating']      )
    for title, rating in movies.items():
      writer.writerow([title, rating]      )


if __name__ == "__main__":
  write_movies()



