



'''simple docstring'''





from __future__ import annotations

import csv

import requests
from bsa import BeautifulSoup




def lowerCAmelCase						(__A = ""):



					"""simple docstring"""



					_a											=						url or '''https://www.imdb.com/chart/top/?ref_=nv_mv_250'''
					_a											=						BeautifulSoup(requests.get(_lowercase).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(_lowercase						,			_lowercase)
					}




def lowerCAmelCase						(__A = "IMDb_Top_250_Movies.csv"):



					"""simple docstring"""



					_a											=						get_imdb_top_aaa_movies()
					with open(_lowercase						,			'''w'''						,			newline='''''') as out_file:
										_a											=						csv.writer(_lowercase)
										writer.writerow(['''Movie title''', '''IMDb rating'''])
										for title, rating in movies.items():
															writer.writerow([title, rating])


if __name__ == "__main__":
		write_movies()








'''simple docstring'''





def lowerCAmelCase						(__A = 1_000):



     """simple docstring"""



     _a											=						2**power
     _a											=						str(__A)
     _a											=						list(__A)
     _a											=						0

     for i in list_num:
          sum_of_num += int(__A)

     return sum_of_num


if __name__ == "__main__":
  lowercase_	 =						int(input("Enter the power of 2: ").strip())
  print("2 ^ ", power, " = ", 2**power)
  lowercase_	 =						solution(power)
  print("Sum of the digits is: ", result)



