





"""simple docstring"""






from __future__ import annotations

from collections.abc import Generator

import requests
from bsa import BeautifulSoup

lowerCAmelCase_			=							'''https://www.indeed.co.in/jobs?q=mobile+app+development&l='''

def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE = "mumbai"							)		->       Generator[tuple[str, str], None, None]:






       """simple docstring"""




       _UpperCAmelCase     =     BeautifulSoup(requests.get(url + location							).content,'html.parser'							)
       # This attribute finds out all the specifics listed in a job
       for job in soup.find_all('div',attrs={'data-tn-component': 'organicJob'}							):
              _UpperCAmelCase     =     job.find('a',attrs={'data-tn-element': 'jobTitle'}							).text.strip()
              _UpperCAmelCase     =     job.find('span',{'class': 'company'}							).text.strip()
              yield job_title, company_name


if __name__ == "__main__":
    for i, job in enumerate(fetch_jobs('''Bangalore'''), 1):
        print(F'''Job {i:>2} is {job[0]} at {job[1]}''')













"""simple docstring"""






from itertools import product

def       __lowerCamelCase    (       SCREAMING_SNAKE_CASE,SCREAMING_SNAKE_CASE							)		->       list[int]:






       """simple docstring"""




       _UpperCAmelCase     =     sides_number
       _UpperCAmelCase     =     max_face_number * dice_number
       _UpperCAmelCase     =     [0] * (max_total + 1)

       _UpperCAmelCase     =     1
       _UpperCAmelCase     =     range(SCREAMING_SNAKE_CASE,max_face_number + 1							)
       for dice_numbers in product(SCREAMING_SNAKE_CASE,repeat=SCREAMING_SNAKE_CASE							):
              _UpperCAmelCase     =     sum(SCREAMING_SNAKE_CASE							)
              totals_frequencies[total] += 1

       return totals_frequencies

def       __lowerCamelCase    (       )		->       float:






       """simple docstring"""




       _UpperCAmelCase     =     total_frequency_distribution(
           sides_number=4,dice_number=9							)
       _UpperCAmelCase     =     total_frequency_distribution(
           sides_number=6,dice_number=6							)

       _UpperCAmelCase     =     0
       _UpperCAmelCase     =     9
       _UpperCAmelCase     =     4 * 9
       _UpperCAmelCase     =     6
       for peter_total in range(SCREAMING_SNAKE_CASE,max_peter_total + 1							):
              peter_wins_count += peter_totals_frequencies[peter_total] * sum(
                  colin_totals_frequencies[min_colin_total:peter_total]							)

       _UpperCAmelCase     =     (4**9) * (6**6)
       _UpperCAmelCase     =     peter_wins_count / total_games_number

       _UpperCAmelCase     =     round(SCREAMING_SNAKE_CASE,ndigits=7							)

       return rounded_peter_win_probability


if __name__ == "__main__":
    print(F'''{solution() = }''')






